Метод operator [] абстрактный
String operator [](Получает символ (как строку с одним кодовым элементом String) по заданному index.
Возвращаемая строка представляет ровно один код единицы UTF-16, который может быть половиной суррогатной пары. Один элемент суррогатной пары — это недопустимая строка UTF-16:
var clef = '\u{1D11E}';
// These represent invalid UTF-16 strings.
clef[0].codeUnits; // [0xD834]
clef[1].codeUnits; // [0xDD1E]
Этот метод эквивалентен new String.fromCharCode(this.codeUnitAt(index)).
Исходный код
String operator [](int index);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-core/String/operator_get.html