booleanLiteral top-level property

Parser<BooleanParser> booleanLiteral
final

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

Implementation

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