ZenithScopeGuard class
A version token that invalidates asynchronous work when its logical scope changes, such as navigating away, switching accounts, or selecting another document.
The guard has no application-specific identity. Owners call invalidate whenever work from the previous scope must no longer affect state.
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
-
capture(
) → ZenithScopeToken - Captures a token for the current logical scope.
-
invalidate(
) → void - Invalidates all tokens captured before this call.
-
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