Option<T> class
Options class to store a single option
Constructors
Properties
- abbr → String?
-
The abbreviation of the option
final
- defaultValue → T
-
The default value of the option
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- help → String
-
The help text for the option when using the help flag
final
- name → String
-
The name of the option
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T
-
Returns the value of the option, if not set, the default value is used
getter/setter pair
Methods
-
copy(
) → Option< T> - Copies this option into a new object
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator +(
Option< T> other) → Option<T> - When merging options we can use the + operator to merge the values of the options. If there are more than one option the filled in and not the same as the default, the second option will be used.
-
operator ==(
Object other) → bool -
The equality operator.
inherited