createEnvelope abstract method

Envelope createEnvelope({
  1. required ID sender,
  2. required ID receiver,
  3. DateTime? time,
})

Creates a new Envelope instance with required sender/receiver and optional timestamp.

sender: Required sender ID (cannot be null)

receiver: Required receiver ID (cannot be null)

time: Optional message timestamp (defaults to current time if null)

Returns: New Envelope instance with the specified parameters

Implementation

Envelope createEnvelope({required ID sender, required ID receiver, DateTime? time});