eatWhitespace method

bool eatWhitespace()

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;
}