whitespace function

  1. @useResult
Parser<String> whitespace({
  1. String message = 'whitespace expected',
})

Returns a parser that accepts any whitespace character.

For example, the parser whitespace() accepts the character ' '.

Implementation

@useResult
Parser<String> whitespace({String message = 'whitespace expected'}) =>
    CharacterParser(const WhitespaceCharPredicate(), message);