elementAtOrNull method

T? elementAtOrNull(
  1. int? index
)

Implementation

T? elementAtOrNull(int? index) {
  if (index == null || this == null) return null;
  if (index >= this!.length || index < 0) return null;
  return this?.elementAt(index);
}