get method

X? get(
  1. int index
)

Implementation

X? get(int index) {
  if (this == null) return null;
  if (index > this!.length) return null;
  return this![index];
}