elementAtOrNull method

T? elementAtOrNull(
  1. int index
)

Returns an element at the given index or null if the index is out of bounds of this collection.

Implementation

T? elementAtOrNull(int index) => getOrNull(index);