UnicodeCharacterParser constructor

UnicodeCharacterParser(
  1. CharacterPredicate predicate,
  2. String message
)

Constructs a parser for an individual Unicode code point satisfying predicate.

Implementation

factory(CharacterPredicate predicate, String message) =>
    ConstantCharPredicate.any.isEqualTo(predicate)
    ? AnyUnicodeCharacterParser.internal(predicate, message)
    : UnicodeCharacterParser.internal(predicate, message);