ValueParser<V> class abstract

A ValueParser converts a source string value to the specific option value type.

Must throw a FormatException with an appropriate message if the value cannot be parsed.

Implementers

Constructors

ValueParser()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

format(V value) → String
Returns a usage documentation friendly string representation of the value. The default implementation simply invokes toString.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String value) → V
Converts a source string value to the specific option value type. Must throw a FormatException with an appropriate message if the value cannot be parsed.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited