HookState class abstract
A mixin to be used with StatefulWidget to enable the use of Hooks. This mixin manages the lifecycle of Hooks, ensuring they are properly initialized and disposed of.
- Implementers
- Available extensions
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetIndex(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
use<
R extends Hook> (R hook) → R - Registers a Hook and ensures it is initialized only once. This method returns the registered Hook.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited