ButtonState class
Represents the state of a button and provides methods to interact with it.
Constructors
- ButtonState(ButtonNotifier _notifier)
- Constructs a ButtonState instance with the specified notifier.
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
-
abort(
) → void - Aborts the current submission.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setText(
String text) → void - Sets the text of the button.
-
submit<
T> ({Duration? abortOn, dynamic then()?, Future< T> future()?}) → Future<T> - Submits an action associated with the button, optionally with a delay for aborting.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited