SyncCapabilities class

A DocumentCapabilities on the wire.

crdt_lf describes what a build can read and what a document's data holds; this adds the JSON form the handshake carries, and the comparison that decides whether the two fit together.

Constructors

SyncCapabilities(DocumentCapabilities capabilities, {bool complete = false})
Wraps a description produced by crdt_lf.
const
SyncCapabilities.fromJson(Map<String, dynamic> json, {bool complete = false})
Reads capabilities from the JSON form written by toJson.
factory

Properties

capabilities → DocumentCapabilities
What the peer says, keyed by Handler.handlerType.
final
complete → bool
Whether this names every handler type the peer can read.
final
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Whether this claims nothing at all.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

missingFrom(DocumentRequirements requirements) → List<CapabilityMismatch>
The reasons this build cannot handle what requirements ask for.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
The JSON form: {"CRDTFugueTextHandler": {"kinds": [0, 1, 2], "blob": {"min": 1, "max": 1}}}.
toString() → String
A string representation of this object.
override

Operators

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