SyncIncompatibility class

Why the server refused this client build.

A permanent condition: reconnecting cannot fix it, only a newer client (or an older document) can. A client that holds one stops trying and stays in ConnectionStatus.unsupported.

Constructors

SyncIncompatibility({required String code, required String message})
Records a refusal the server sent as code, explained by message.
const

Properties

code → String
The error code the server sent.
final
hashCode → int
The hash code for this object.
no setterinherited
isMissingOperationKinds → bool
Whether this build cannot decode operations the document holds.
no setter
isProtocolVersionMismatch → bool
Whether the peers disagree on Protocol.protocolVersion.
no setter
message → String
The server's explanation.
final
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.
override

Operators

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

Static Methods

isTerminalCode(String code) → bool
Whether code is a refusal a client cannot recover from.