ClixSelector class final

A numbered Clix selector that keeps input in the terminal's line mode.

Text filters all choices case-insensitively; a number selects an entry from the displayed list. A blank line or an empty choice list returns null.

Inheritance

Constructors

ClixSelector({required String prompt, required List<String> options})

Properties

hashCode → int
The hash code for this object.
no setterinherited
options → List<String>
A retained, immutable copy of the choices to search and display.
final
prompt → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

interact([CliIO? io, CliTheme? theme]) → Future<String?>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(CliIO io, CliTheme theme) → Future<String?>
override
toString() → String
A string representation of this object.
inherited

Operators

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