MutableAtom<T extends Object?> class abstract interface

An Atom whose value can be mutated.

Inheritance

Constructors

MutableAtom()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
Return the current value of the instance.
no setterinherited

Methods

call() → T
Return the current value of the instance.
inherited
mutate(void mutation(T value)) → void
Mutate the current value in place within the mutation invocation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(T value) → void
Set the current value to value.
toString() String
A string representation of this object.
inherited
update(T updater(T value)) → void
Update the current value to the result of invoking updater with the current value.

Operators

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