IMessage<T extends IMessageType> class abstract interface

Interface representing a message with a specific type and associated data.

Implemented types

Properties

data → IList
The data associated with the message
no setter
description → String?
Returns a description of the identity.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
Returns a unique identifier for the identity.
no setterinherited
messageType → T
The type of the message
no setter
metadata → Map<String, dynamic>
Returns the metadata associated with this resource.
no setterinherited
name → String
Returns a human-readable name for the identity.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
Returns a timestamp for the object. This is intentionally generic, as it is not always going to be something specific like a creation time or modification time.
no setterinherited
timing → MessageTiming?
Transport-observed timing for this message, or null when the transport could not supply it (or the message has not been over a wire at all).
no setter
uId → String
Returns a unique identifier that is guaranteed to be globally unique.
no setterinherited

Methods

getMetadata(String key, {dynamic defaultValue}) → dynamic
Returns a specific metadata value by key.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Converts the object to a map representation for serialization.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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