SyncManager class

Manager for the CRDT client

Constructors

SyncManager({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

Methods

applyChange(Change change) → void
Applies a change
applyChanges(List<Change> changes) → void
Applies a list of changes
dispose() → void
Dispose the resources
merge({required VersionVector serverVersionVector, 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
requestDocumentStatus() Future<void>
Requests the document status from the server
toString() String
A string representation of this object.
inherited

Operators

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