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 is the required sender ID (cannot be null). receiver is the required receiver ID (cannot be null). time is the optional message timestamp (defaults to current time if null).

Returns a new Envelope instance with the specified parameters.

Implementation

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