Свойство currentAsString
Строка, содержащая текущий символ.
Для символов за пределами основного многоязычного плана это будет строка длиной 2, содержащая две кодовые единицы.
Возвращает пустую строку, если нет значения current.
Реализация
String get currentAsString {
if (_position == _nextPosition) return "";
if (_position + 1 == _nextPosition) return string[_position];
return string.substring(_position, _nextPosition);
}
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/RuneIterator/currentAsString.html