eatWhitespace method
Consumes any whitespace characters from the current position.
Returns true if any whitespace was consumed, false otherwise.
Implementation
bool eatWhitespace() {
return eat((char, _) => char.trim().isEmpty, null) != null;
}
Consumes any whitespace characters from the current position.
Returns true if any whitespace was consumed, false otherwise.
bool eatWhitespace() {
return eat((char, _) => char.trim().isEmpty, null) != null;
}