TypingIndicator class
Represents a typing indicator within the chat.
This class includes properties that encapsulate details of a typing indicator, including the sender, receiverId, receiverType, metadata, and the last timestamp.
Constructors
-
TypingIndicator({required User sender, required String receiverId, required String receiverType, Map<
String, String> ? metadata, required DateTime lastTimestamp}) -
Constructs a new
TypingIndicator
instance. - TypingIndicator.fromMap(dynamic map)
-
Creates a new
TypingIndicator
instance from a map.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastTimestamp ↔ DateTime
-
getter/setter pair
-
metadata
↔ Map<
String, String> ? -
getter/setter pair
- 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
-
toString(
) → String -
Generates a string representation of the
TypingIndicator
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited