choice method
An extension version of choiceValueParser.
// Equivalent:
choiceValueParser([2, 4], intValueParser);
intValueParser.choice([2, 4]);
Implementation
ValueParser<T> choice(List<T> choices, {ValuePrinter<T>? printer}) =>
choiceValueParser(choices, this, printer: printer);