Effect<T> class abstract interface

Represents a reactive effect that automatically tracks and responds to changes in reactive references.

Properties

dirty bool
Indicates whether the effect is dirty and needs to be re-run.
no setter
hashCode int
The hash code for this object.
no setterinherited
onStop → void Function()?
A function to be called when the effect is stopped.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduler → void Function()?
A custom scheduler function for controlling when the effect should run.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pauses the effect, preventing it from running until resumed.
resume() → void
Resumes a paused effect, allowing it to run again.
run() → T
Runs the effect and returns its result.
stop() → void
Stops the effect from running.
toString() String
A string representation of this object.
inherited
trigger() → void
Manually triggers the effect to run, regardless of its current state.

Operators

operator ==(Object other) bool
The equality operator.
inherited