letter function Null safety

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

Returns a parser that accepts any letter character (lowercase or uppercase). The accepted input is equivalent to the character-set a-zA-Z.

Implementation

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