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.

Inheritance

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

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<GetFetchPolicy>
A constant List of the values in this enum, in order of their declaration.