operator [] method

T? operator [](
  1. int index
)

Implementation

T? operator [](int index) => length > index ? elementAt(index) : null;