fastParse method
Parses the input and returns true
if successful, false
otherwise.
Implementation
@override
bool fastParse(State<StringReader> state) {
final input = state.input;
final pos = state.pos;
while (state.pos < input.length) {
final c = input.readChar(state.pos);
if (!f(c)) {
break;
}
state.pos += input.count;
}
if (state.pos != pos) {
return true;
}
state.fail<Object?>(const ErrorUnexpectedCharacter());
return false;
}