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