digit function Null safety

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

Returns a parser that accepts any digit character. The accepted input is equivalent to the character-set 0-9.

Implementation

Parser<String> digit([String message = 'digit expected']) =>
    CharacterParser(const DigitCharPredicate(), message);