digit function
Returns a parser that accepts any digit character. The accepted input is
equivalent to the character-set 0-9.
For example, the parser digit() accepts the character '1'.
Implementation
@useResult
Parser<String> digit({String message = 'digit expected'}) =>
CharacterParser(const DigitCharPredicate(), message);