TransientMessage class

Represents a temporary or transient message within the chat.

This class includes properties that encapsulate details of a non-persistent chat message, including the receiverId, receiverType, data, and sender.

Constructors

TransientMessage({required String receiverId, required String receiverType, required Map<String, dynamic> data, User? sender})
Constructs a new TransientMessage instance.
TransientMessage.fromMap(dynamic map)
Creates a new TransientMessage instance from a map.
factory

Properties

data ↔ Map<String, dynamic>
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
receiverId ↔ String
getter/setter pair
receiverType ↔ String
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sender ↔ User?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Generates a map representing the TransientMessage.
toString() → String
Generates a string representation of the TransientMessage.
override

Operators

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