booleanLiteral top-level property
Finds strings 'true' or 'false' (without quotes)
Implementation
final Parser<BooleanParser> booleanLiteral = (string('true') | string('false'))
.flatten()
.map((value) => BooleanParser(value == 'true'));
Finds strings 'true' or 'false' (without quotes)
final Parser<BooleanParser> booleanLiteral = (string('true') | string('false'))
.flatten()
.map((value) => BooleanParser(value == 'true'));