noneOf function Null safety

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

Returns a parser that accepts none of the specified characters.

Implementation

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