expectDone method
If the string has not been fully consumed, this throws a FormatException.
Implementation
void expectDone() {
if (isDone) return;
_fail('no more input');
}
If the string has not been fully consumed, this throws a FormatException.
void expectDone() {
if (isDone) return;
_fail('no more input');
}