DVOfflineSync class
Runs every offline data model's queue on this device.
Properties
- hashCode → int
-
The hash code for this object.
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
Static Properties
- database → DVDatabaseAdapter
-
The device database, opened on first use.
no setter
-
idle
→ Future<
void> -
Completes when no replay is running.
no setter
Static Methods
-
install(
{Future< DVDatabaseAdapter> database()?, DVOfflineSend? send, Stream<bool> ? reachability, bool canReachTheServer()?, Duration firstRetry = const Duration(seconds: 2), Duration maxRetry = const Duration(minutes: 5)}) → void - Wires the runtime to this device, once, as the application starts.
-
register(
String model, DVOfflineStore build(DVDatabaseAdapter database)) → void -
Declares
modelas an offline data model whose storebuildmakes. -
resetForTesting(
) → Future< void> - Forgets everything, for a test.
-
signedOut(
) → Future< void> - Sends what can be sent, then empties every store: signing out.
-
store(
String model) → Future< DVOfflineStore> -
model's store on this device, ready to use. -
written(
String model) → void -
A write was queued for
model: send it if the server can be reached.