Logic mixin
Implements utilities methods for accessing the scope where this logic is stored.
Properties
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) → 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.
-
update<
T> (StateRef< T> ref, Updater<T> updater, [Object? action]) → void -
Updates the value of the state referenced by
ref
with a function which provides the current state. -
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