operator [] method Null safety

T operator [](
  1. int index
)

Returns an element of the vector.

Implementation

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