Represents a scope for managing reactive effects and computations.
Properties
- active → bool
-
Indicates whether this scope is currently active.
no setter
- detached → bool
-
Indicates whether this scope is detached from its parent.
no setter
- 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
-
off(
) → void - Deactivates the scope, preventing effects within it from running.
-
on(
) → void - Activates the scope, allowing effects within it to run.
-
pause(
) → void - Pauses all effects within this scope.
-
resume(
) → void - Resumes all paused effects within this scope.
-
run<
T> (T runner()) → T? - Runs a function within this scope and returns its result.
-
stop(
[bool fromParent = false]) → void - Stops all effects within this scope.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited