Scope class abstract
An object which holds a part of the application state.
- Implementers
Constructors
- Scope()
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
-
clear<
T> (StateRef< T> ref) → void -
Removes the state referenced by
ref
from the scope. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read<
T> (Watchable< T> ref, List<BinderKey> ? keys) → T -
Gets the current state referenced by
ref
. -
redo(
) → void - Re-executes a previously canceled write.
-
toString(
) → String -
A string representation of this object.
inherited
-
undo(
) → void - Cancels the last write.
-
use<
T> (LogicRef< T> ref) → T -
Gets the current logic component referenced by
ref
. -
write<
T> (StateRef< T> ref, T state, [Object? action]) → void -
Updates the value of the state referenced by
ref
withstate
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited