ValueParser<T> typedef
ValueParser<T> =
T Function(String s)
A function that takes in a string and parses it, returning some result value
of type T
. If the value cannot be parsed, a ValueParserException should
be thrown.
Implementation
typedef ValueParser<T> = T Function(String s);