word function

  1. @useResult
Parser<String> word([
  1. String message = 'letter or digit expected'
])

Returns a parser that accepts any word character (lowercase, uppercase, underscore, or digit). The accepted input is equivalent to the character-set a-zA-Z_0-9.

Implementation

@useResult
Parser<String> word([String message = 'letter or digit expected']) =>
    SingleCharacterParser(const WordCharPredicate(), message);