Describes how far reads/writes should reach before they are good enough.
The possible values are:
- Reach.local - The local cache. You get the best resiliency (and best reading/writing latency), but risk of inconsistent state is high.
- Reach.server - The fastest (cloud) database or search engine. Often diverges from the regional master database. For example, it's usual for search engine clusters to take seconds or minutes before they have indexed changes in the regional master.
- Reach.regional - The regional master. May diverge from the global master database during (extremely rare) network partitions.
- Reach.global - The global master. You get the worst resiliency and best possible consistency.
final snapshot = await document.get(reach: Reach.local);
- global → const Reach
Global master database.
- local → const Reach
- regional → const Reach
Regional master database.
- server → const Reach
The fastest cloud database or search engine.
→ const List<
A constant List of the values in this enum, in order of their declaration.