operator [] method

E operator [](
  1. int index
)

Syntactic sugar for calling elementAt with index.

Implementation

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