Select class

A custom terminal selection menu component. Provides arrow-key navigation when ANSI escapes are supported, with automatic fallback to numbered selection.

Constructors

Select({required String prompt, required List<String> options, int initialIndex = 0})

Properties

hashCode int
The hash code for this object.
no setterinherited
initialIndex int
final
options List<String>
final
prompt String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

interact() int
Displays the selection menu and returns the index of the chosen option.
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