GetFetchPolicy enum
The policy options that determine whether Cloud Firestore documents should be returned from the cache only, server only, or a combination of both for future-based requests.
Constructors
- GetFetchPolicy()
-
const
Values
- cacheFirst → const GetFetchPolicy
-
Specifies that documents should be returned from the cache first, otherwise it should fallback to trying to read it from the server.
- cacheOnly → const GetFetchPolicy
-
Specifies that documents should be read from the cache only and return null if not present, never hitting the server.
- serverOnly → const GetFetchPolicy
-
Specifies that documents should only be read from the server and will never be populated from cached data.
Properties
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<
GetFetchPolicy> - A constant List of the values in this enum, in order of their declaration.