tryGet method Null safety

V? tryGet(
  1. int index
)

Implementation

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