OfflinePolicy class final

What the client does with operations while offline (02f §7.4).

Constructors

OfflinePolicy({bool staleReads = true, bool queueWrites = true, int failAfterAttempts = 3})
Creates a policy.
const

Properties

failAfterAttempts → int
Failed reconnect attempts after which the state becomes offline.
final
hashCode → int
The hash code for this object.
no setterinherited
queueWrites → bool
Queue idempotent writes in the OutboxStore (only when the app passed one).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staleReads → bool
Serve reads from the CacheStore (stale: true + asOf) when the server is unreachable.
final

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