RefreshableAtomWithParent<A, Parent extends Atom> class
See atomWithParent.
- Inheritance
-
- Object
- Atom<
A> - AtomWithParentBase<
A, Parent> - RefreshableAtomWithParent
- Mixed-in types
-
- AtomConfigMixin<
RefreshableAtomWithParent< A, Parent> > - RefreshableAtom
- AtomConfigMixin<
- Available extensions
Constructors
-
RefreshableAtomWithParent.new(Parent parent, A reader(AtomContext<
A> , Parent parent))
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
Debug name for this atom
no setterinherited
- parent → Parent
-
The parent Atom.
finalinherited
-
reader
→ A Function(AtomContext<
A> , Parent parent) -
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< A> -
Used by the registry to create a read lifetime. Bit hacky, but allows us
to go from dynamic to T.
inherited
-
$read(
AtomContext< A> ctx) → A -
Used by the registry to read the atoms value.
inherited
-
$refresh(
void refresh(Atom atom)) → void -
Determines refresh behaviour.
override
-
asyncSelect<
B> (B f(A value)) → AtomWithParent< Future< B> , Atom<FutureValue< >A> > -
Available on Atom<
Create a derived atom, that transforms an atoms value using the given functionFutureValue< , provided by the FutureValueAtomExtension extensionA> >f
. -
asyncSelect<
B> (B f(A value)) → AtomWithParent< Future< B> , Parent> -
Available on AtomWithParentBase<
Create a derived atom, that transforms an atoms value using the given functionFutureValue< , provided by the FutureValueAtomWithParentExtension extensionA> , Parent>f
. -
filter(
bool predicate(A value)) → AtomWithParent< FutureValue< A> , Atom<A> > -
Available on Atom<
Create a derived atom, that filters the values using the given predicate.A> , provided by the AtomExtension extension -
keepAlive(
) → RefreshableAtomWithParent< A, Parent> -
Prevent the state of this atom from being automatically disposed.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rawSelect<
B> (B f(FutureValue< A> value)) → AtomWithParent<B, Atom< FutureValue< >A> > -
Available on Atom<
Create a derived atom, that transforms an atoms value using the given functionFutureValue< , provided by the FutureValueAtomExtension extensionA> >f
. -
rawSelect<
B> (B f(FutureValue< A> value)) → AtomWithParent<B, Parent> -
Available on AtomWithParentBase<
Create a derived atom, that transforms an atoms value using the given functionFutureValue< , provided by the FutureValueAtomWithParentExtension extensionA> , Parent>f
. -
select<
B> (B f(A value)) → AtomWithParent< B, Atom< A> > -
Available on Atom<
Create a derived atom, that transforms an atoms value using the given functionA> , provided by the AtomExtension extensionf
. -
select<
B> (B f(A value)) → AtomWithParent< FutureValue< B> , Atom<FutureValue< >A> > -
Available on Atom<
Create a derived atom, that transforms an atoms value using the given functionFutureValue< , provided by the FutureValueAtomExtension extensionA> >f
. -
select<
B> (B f(A value)) → AtomWithParent< FutureValue< B> , Parent> -
Available on AtomWithParentBase<
Create a derived atom, that transforms an atoms value using the given functionFutureValue< , provided by the FutureValueAtomWithParentExtension extensionA> , Parent>f
. -
setName(
String name) → RefreshableAtomWithParent< A, Parent> -
Set a name for debugging
override
-
toString(
) → String -
A string representation of this object.
inherited
-
withInitialValue(
A value, {bool keepAlive = true}) → AtomInitialValue< A> -
Create an initial value override, which can be given to an AtomScope or
AtomRegistry.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited