Factory interface for creating and parsing Envelope instances.
Provides methods to construct new envelopes from raw components and reconstruct envelopes from their serialized Map/JSON representation.
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 new Envelope instance with required sender/receiver and optional timestamp.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseEnvelope(
Map env) → Envelope? - Parses a serialized Map into an Envelope instance.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited