operator [] method

*<Null safety>*
  • @override

E operator [] (int index) override

Implementation

@override
E operator [](int index) {
  if (source.length != _initialSize) {
    throw ConcurrentModificationError(source);
  }
  RangeError.checkValidIndex(index, this, null, length);
  return source[start + index];
}