operator [] method

T operator [](
  1. int index
)

Returns the element of type T at the specified index.

Implementation

T operator [](int index) => elementAt(index);