метод operator []
- int index
override
Объект по указанному index в списке.
index должно быть допустимым индексом этого списка, что означает, что index должно быть неотрицательным и меньше длины.
Реализация
Length operator [](int index) {
if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length))
throw new RangeError.index(index, this);
return this.getItem(index);
}
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-svg/LengthList/operator_get.html