SyncManager class

Manager for the CRDT client

Constructors

SyncManager.new({required CRDTDocument document, required CRDTSocketClient client})
Constructor

Properties

client CRDTSocketClient
The socket client
final
document → CRDTDocument
The local CRDT document
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unSyncChanges List<Change>
The changes that have not been sent to the server
no setter
unSyncChangesCount Stream<int>
Stream of the number of unSyncChanges
no setter

Methods

applyChange(Change change) → void
Applies a change
applyChanges(List<Change> changes) → void
Applies a list of changes
dispose() → void
Dispose the resources
merge({List<Change>? changes, Snapshot? snapshot}) → void
CRDTDocument.import with merge: true
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