RefreshablePodFuture<F extends Pod, T> class
RefreshablePod for Future's.
- Inheritance
-
- Object
- Pod<
T> - PodFutureBase<
F, T> - RefreshablePodFuture
- Mixed-in types
- Available extensions
Constructors
-
RefreshablePodFuture.new(F future, T reader(Ref<
T> , F future)) - RefreshablePodFuture constructor
Properties
- future → F
-
The future Pod.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isKeepAlive → bool
-
Check if this pod should keep alive
no setterinherited
- name → String?
-
Debug name for this pod
no setterinherited
-
reader
→ T Function(Ref<
T> , F future) -
Reader callback.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asyncSelect<
V> (V cb(T value)) → PodFuture< Pod< AsyncValue< , Future<T> >V> > -
Available on Pod<
Create a derived pod, that transforms a pod's value using the given functionAsyncValue< , provided by the AsyncValuePodExtension extensionT> >cb
. -
filter(
bool predicate(T value)) → PodFuture< Pod< T> , AsyncValue<T> > -
Available on Pod<
Create a derived pod, that filters the values using the given predicate.T> , provided by the PodExtension extension -
getContext(
Node node) → Ref< T> -
Used by the container to create a read lifetime. Bit hacky, but allows us
to go from dynamic to T.
inherited
-
keepAlive(
) → RefreshablePodFuture< F, T> -
Prevent the state of this pod from being automatically disposed.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overrideWithValue(
T value, {bool keepAlive = true}) → Override< T> -
Create an initial value override, which can be given to a PodScope or
PodContainer.
inherited
-
rawSelect<
V> (V cb(AsyncValue< T> value)) → PodFuture<Pod< AsyncValue< , V>T> > -
Available on Pod<
Create a derived pod, that transforms a pod's value using the given functionAsyncValue< , provided by the AsyncValuePodExtension extensionT> >cb
. -
read(
Ref< T> ref) → T -
Used by the container to read the pods value.
inherited
-
refresh(
void refresh(Pod pod)) → void -
Determines refresh behaviour.
override
-
select<
V> (V cb(T value)) → PodFuture< Pod< AsyncValue< , AsyncValue<T> >V> > -
Available on Pod<
Create a derived pod, that transforms a pod's value using the given functionAsyncValue< , provided by the AsyncValuePodExtension extensionT> >cb
. -
select<
B> (B cb(T value)) → PodNotifier< Pod< T> , B> -
Available on Pod<
Create a derived pod, that transforms a pod's value using the given functionT> , provided by the PodExtension extensioncb
. -
setName(
String name) → RefreshablePodFuture< F, T> -
Set a name for debugging
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited