RefreshableWritableAtom<R, W> class

Represents an Atom that can be written to.

Inheritance
Mixed in types
Available Extensions

Constructors

RefreshableWritableAtom(WritableAtom<R, W> _parent)

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
Debug name for this atom
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldKeepAlive bool
Should this atoms state be kept, even if it isnt being used?
no setterinherited

Methods

$lifetime(Node node) → ReadLifetime<R>
Used by the registry to create a read lifetime. Bit hacky, but allows us to go from dynamic to T.
inherited
$read(AtomContext<R> ctx) → R
Used by the registry to read the atoms value.
override
$refresh(void refresh(Atom atom)) → void
Determines refresh behaviour.
inherited
$write(GetAtom get, SetAtom set, SetSelf<R> setSelf, W value) → void
When the atom recieves a write with the given value, this method determines the outcome.
override
keepAlive() RefreshableWritableAtom<R, W>
Prevent the state of this atom from being automatically disposed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setName(String name) RefreshableWritableAtom<R, W>
Set a name for debugging
inherited
toString() String
A string representation of this object.
inherited
withInitialValue(R value, {bool keepAlive = true}) AtomInitialValue<R>
Create an initial value override, which can be given to an AtomScope or AtomRegistry.
inherited

Operators

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