OfflineFirstGetPolicy enum
Data will always be returned from local providers and never directly from a remote provider(s)
Values
- alwaysHydrate → const OfflineFirstGetPolicy
-
Ensures data is fetched from the remote provider(s) at each invocation. This hydration is unawaited and is not guaranteed to complete before results are returned. This can be expensive to perform for some queries; see awaitRemoteWhenNoneExist for a more performant option or awaitRemote to await the hydration before returning results.
- awaitRemote → const OfflineFirstGetPolicy
-
Ensures results must be updated from the remote proivder(s) before returning if the app is online. An empty array will be returned if the app is offline.
- awaitRemoteWhenNoneExist → const OfflineFirstGetPolicy
-
Retrieves from the remote provider(s) if the query returns no results from the local provider(s).
- localOnly → const OfflineFirstGetPolicy
-
Do not request from the remote provider(s)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
OfflineFirstGetPolicy> - A constant List of the values in this enum, in order of their declaration.