tryElementAt method

E? tryElementAt(
  1. int i
)

Returns the ith element or null if out of bounds.

Implementation

E? tryElementAt(int i) => i >= 0 && i < length ? elementAt(i) : null;