Sort class
A sortable list component.
Constructors
-
Sort({required String prompt, required List<
String> options, bool showOutput = true}) - Constructs a Sort component with the default theme.
-
Sort.withTheme({required String prompt, required List<
String> options, required Theme theme, bool showOutput = true}) - Constructs a Sort component with the default theme.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
options
→ List<
String> -
The List of available
String
options to show to the user.final - prompt → String
-
The prompt to be shown together with the user's input.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showOutput → bool
-
Indicates whether to show the sorted output on the
success prompt or not.
final
- theme → Theme
-
The theme of the component.
final
Methods
-
createState(
) → _SortState -
Creates a
State
for current component, inspired by Flutter'sStatefulWidget
. -
disposeState(
State< Component> state) → void -
Disposes current state, to make the
Context
null and unusable after the rendering is completely finished.inherited -
interact(
) → List< String> -
Starts the rendering processs.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pipeState(
State< Component> state) → State<Component> -
Pipes the state after running
createState
in case of needing to handle the state from outside.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited