ActionButtonState<T extends ActionButton> class
abstract
It's a button that can be selected or deselected, and it can be activated or deactivated
- Inheritance
- Implementers
Constructors
Properties
- active ↔ bool
-
read / write
- additionalFlag ↔ bool
-
read / write
- angle ↔ double
-
It's a variable that is used to rotate the icon.
read / write
- context → BuildContext
-
The location in the tree where this widget builds.
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- icon ↔ IconData
-
icon to display.
latefinal
- mounted → bool
-
Whether this State object is currently in a tree.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- selected ↔ bool
-
read / write
- widget → T
-
The current configuration.
read-onlyinherited
Methods
-
activate(
) → void -
Activate from external widget
override
-
activateNoState(
) → void -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
deActivate(
) → void - Deactivate from external widget
-
deactivate(
) → void -
Called when this object is removed from the tree.
inherited
-
deActivateNoState(
) → void -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
deSelect(
) → void - Deselect from external widget
-
didChangeDependencies(
) → void -
Called when a dependency of this State object changes.
inherited
-
didUpdateWidget(
covariant T oldWidget) → void -
Called whenever the widget configuration changes.
inherited
-
dispose(
) → void -
Called when this object is removed from the tree permanently.
inherited
-
initState(
) → void -
Called when this object is inserted into the tree.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDismiss(
) → void - It's a function that takes no arguments and returns nothing.
-
onSelect(
) → void - It's a function that takes no arguments and returns nothing.
-
reassemble(
) → void -
Called whenever the application is reassembled during debugging, for
example during hot reload.
inherited
-
select(
) → void - "When the user taps the button, set the selected state to true."
-
selectNoState(
) → void -
setState(
VoidCallback fn) → void -
Notify the framework that the internal state of this object has changed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
-
whenNotSelected(
) → void - When the widget is not selected, call the onSelect function and set the state to selected
-
whenSelected(
) → void - When the user selects a suggestion, the onDismiss callback is called, and the selected state is set to false
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited