JsonFileSyncStore class final

A durable JSON file store for mobile, desktop, and server Dart runtimes.

Writes use a temporary file and a backup before replacement. Applications should create only one manager for a given path.

Implemented types

Constructors

JsonFileSyncStore(String path)
Creates a JSON-backed store at path.

Properties

hashCode int
The hash code for this object.
no setterinherited
path String
Location of the queue file.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Releases resources held by the store.
override
initialize() Future<void>
Prepares the store for reads and writes.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readAll() Future<List<SyncOperation>>
Reads the entire queue in FIFO order.
override
toString() String
A string representation of this object.
inherited
writeAll(List<SyncOperation> operations) Future<void>
Atomically replaces the queue when the backing store supports it.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited