position property
The current position of the scanner in the string, in characters.
Implementation
int get position => _position;
Implementation
set position(int position) {
if (position < 0 || position > string.length) {
throw new ArgumentError("Invalid position $position");
}
_position = position;
_lastMatch = null;
}