RuneIterator class final

Iterator for reading runes (integer Unicode code points) of a Dart string.

Implemented types


RuneIterator(String string)
Create an iterator positioned at the beginning of the string. string, int index)
Create an iterator positioned before the indexth code unit of the string.


current int
The rune (integer Unicode code point) starting at the current position in the string.
no setteroverride
currentAsString String
A string containing the current rune.
no setter
currentSize int
The number of code units comprising the current rune.
no setter
hashCode int
The hash code for this object.
no setterinherited
rawIndex int
The starting position of the current rune in the string.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
string String
String being iterated.


moveNext() bool
Move to the next code point.
movePrevious() bool
Move back to the previous code point.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
reset([int rawIndex = 0]) → void
Resets the iterator to the given index into the string.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.