EffectHook class
Effect hook for side effects in components
Constructors
- EffectHook(dynamic Function()? _effect(), List _dependencies)
- Create an effect hook
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
-
dispose(
) → void -
Clean up the hook when component unmounts
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runEffect(
) → void - Run the effect if needed based on dependency changes
-
toString(
) → String -
A string representation of this object.
inherited
-
updateDependencies(
List newDependencies) → void - Update dependencies - called during reconciliation
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited