CoordinationMessage class abstract
Base class for coordination messages with type safety
Constructors
-
CoordinationMessage({required CoordinationMessageType type, required String fromNodeUId, String? messageId, String? parentMessageId, DateTime? timestamp, Map<
String, dynamic> ? metadata}) - CoordinationMessage.fromJson(String json)
-
factory
Properties
- fromNodeUId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- messageId → String
-
final
-
metadata
→ Map<
String, dynamic> -
final
- parentMessageId → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderClock → double?
-
no setter
- timestamp → DateTime
-
final
- transportTiming ↔ MessageTiming?
-
Transport-observed timing for the message this was decoded from.
getter/setter pair
- type → CoordinationMessageType
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- senderClockKey → const String
- The sender's PeerClock reading, in the sender's own clock domain, for transports that do not put a sender clock on the wire themselves.