booleanLexer top-level property

Parser<BooleanParser> booleanLexer
final

Finds strings 'true' or 'false' (without quotes)

Implementation

final Parser<BooleanParser> booleanLexer = (string('true') | string('false'))
    .flatten()
    .map((value) => BooleanParser(value));