operator [] method

E? operator [](
  1. int index
)

Returns the element at the specified index in the bag.

Implementation

E? operator [](int index) => _data[index];