operator [] method

String? operator [](
  1. int index
)
Gets or sets the String at the specified index. The index of the String to get or set.

Implementation

String? operator [](int index) {
  if (index < 0 || index >= Count) {
    throw RangeError.range(
      index,
      0,
      Count,
      "index",
      "Strings.IndexIsOutOfRange",
    );
  }

  return _items[index];
}