EnvelopeHelper class abstract interface

Helper interface for message envelope management.

Manages envelope factories and provides core functionality for:

  • Creating message envelopes (header metadata)
  • Parsing raw envelope data into strongly-typed Envelope instances

Envelopes contain the core routing metadata of a message: sender ID, receiver ID, and timestamp (when the message was sent).

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createEnvelope({required ID sender, required ID receiver, DateTime? time}) Envelope
Creates a custom message envelope with specified routing metadata.
getEnvelopeFactory() EnvelopeFactory?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseEnvelope(Object? env) Envelope?
Parses raw envelope data into a strongly-typed Envelope instance.
setEnvelopeFactory(EnvelopeFactory factory) → void
toString() String
A string representation of this object.
inherited

Operators

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