CombinedError<T> class
final
Combining results
A source failed and has no data to fall back on. retry() refetches the
failed sources.
- Inheritance
-
- Object
- CombinedResult<
T> - CombinedError
Properties
- dataOrNull → T?
-
The combiner's result on a CombinedData,
nullotherwise.no setterinherited - error → Object
-
What the first failed source threw, in record (or list) order.
final
- hasData → bool
-
Whether this is a CombinedData: every source has data.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
Whether this is a CombinedError: a source failed with nothing to
show.
no setterinherited
- isFetching → bool
-
Whether any source is fetching, first load or background.
no setterinherited
- isPaused → bool
-
Whether any source is paused (QueryResult.isPaused): a fetch that
wants to run but is waiting — for the network, as the source's
networkModeasks, or for the app to return to the foreground before its next retry.no setterinherited - isPending → bool
-
Whether this is a CombinedPending: some source has nothing to show
yet.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace
-
The stack trace that came with error.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refetch(
{bool cancelRefetch = true}) → Future< void> -
Refetches every source, as each one's own
refetchdoes.inherited -
retry(
{bool cancelRefetch = true}) → Future< void> -
Refetches the sources that are in error, and only those — an
OptionalQueryResult.optional source whose query failed included.
cancelRefetchas for refetch.inherited -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
Equal when the variant, what it carries and the fetch flags are: what a
buildWhenor aValueNotifierneeds. The sources'refetchclosures take no part.inherited