anyOf function Null safety

Parser<String> anyOf(
  1. String chars,
  2. [String? message]
)

Returns a parser that accepts any of the specified characters.

Implementation

Parser<String> anyOf(String chars, [String? message]) => CharacterParser(
    optimizedString(chars),
    message ?? 'any of "${toReadableString(chars)}" expected');