Confirm class
A confirm component.
Constructors
- Confirm({required String prompt, bool? defaultValue, bool waitForNewLine = false})
- Constructs a Confirm component with the default theme.
- Confirm.withTheme({required Theme theme, required String prompt, bool? defaultValue, bool waitForNewLine = false})
- Constructs a Confirm component with the supplied theme.
Properties
- defaultValue → bool?
-
The value to be used as an initial value.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
- theme → Theme
-
The theme of the component.
final
- waitForNewLine → bool
-
Determines whether to wait for the Enter key after
the user has responded.
final
Methods
-
createState(
) → _ConfirmState -
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(
) → bool -
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