Logic mixin

Implements utilities methods for accessing the scope where this logic is stored.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope Scope
The scope where this logic is stored.
no setter

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 with state.

Operators

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