ReadOnlyAtom<T> class
See atom.
- Inheritance
-
- Object
- Atom<
T> - ReadOnlyAtomBase<
T> - ReadOnlyAtom
- Mixed-in types
- Available extensions
Constructors
-
ReadOnlyAtom(AtomReader<
T> reader)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
Debug name for this atom
no setterinherited
-
reader
→ AtomReader<
T> -
finalinherited
- 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< T> -
Used by the registry to create a read lifetime. Bit hacky, but allows us
to go from dynamic to T.
inherited
-
$read(
AtomContext< T> ctx) → T -
Used by the registry to read the atoms value.
inherited
-
keepAlive(
) → ReadOnlyAtom< T> -
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
-
refreshable(
) → RefreshableReadOnlyAtom< T> -
Create a refreshable version of this atom, which can be used with
AtomRegistry.refresh or AtomContext.refresh.
override
-
setName(
String name) → ReadOnlyAtom< T> -
Set a name for debugging
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withInitialValue(
T value, {bool keepAlive = true}) → AtomInitialValue< T> -
Create an initial value override, which can be given to an
AtomScope
or AtomRegistry.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited