Vault class
Properties
-
connectionState
→ Stream<
bool> -
Stream of connection state changes.
no setter
-
deniedOperations
→ Stream<
String> -
Stream of blockIds that were denied by security rules during flush.
Listen to this to react when offline queue ops are rejected.
no setter
-
flushResults
→ Stream<
FlushResult> -
Stream of FlushResults emitted after each auto-flush or manual flush.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSmartCache → bool
-
no setter
- isConnected → bool
-
no setter
- pendingOfflineOps → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
collection(
String name, {bool local = false, bool encrypted = false}) → Collection -
dispose(
) → void -
flushOfflineQueue(
) → Future< FlushResult> -
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
Static Methods
-
init(
VaultConfig config) → Future< Vault> - Initialize vault: creates WS channel and connects.