Menu<T> class
Provides functionality of a command-line menu.
The type argument T
is normally inferred from the given list of options.
The only requirement for T
is that it has a sane toString method. That
will be used to list the options.
Constructors
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
-
choose(
) → MenuResult< T> - Lists the options and lets user choose, then returns the result. This is a blocking operation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited