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 >= this.Count) {
    throw new RangeError.range(
        index, 0, this.Count, "index", "Strings.IndexIsOutOfRange");
  }

  return this._items[index];
}