Utility functions for SetupWidget hooks and lifecycle management.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
onChangedDependencies(
void callback()) → void - Registers a callback to be called when widget dependencies change.
-
onMounted(
void callback()) → void - Registers a callback to be called when the widget is mounted.
-
onUnmounted(
void callback()) → void - Registers a callback to be called when the widget is unmounted.
-
onUpdated(
void callback()) → void - Registers a callback to be called when the widget is updated.
-
use<
T> (T hook()) → T - Creates a hook that persists across rebuilds and hot reloads.
-
useContext(
) → BuildContext - Gets the current BuildContext from the SetupWidget.
-
useSetupContext(
) → JoltSetupContext - Gets the current JoltSetupContext.
-
useWidgetProps<
T extends SetupWidget> () → ReadonlyNode< T> - Returns a reactive reference to the widget instance.