whitespace function

Parser<String> whitespace (
  1. [String message = 'whitespace expected']
)

Returns a parser that accepts any whitespace character.

Implementation

Parser<String> whitespace([String message = 'whitespace expected']) {
  return CharacterParser(const WhitespaceCharPredicate(), message);
}