Reaction class

Represents a reaction within the chat.

This class includes properties that encapsulate details of a reaction, including the id, messageId, reaction, uid, reactedAt time, and the user who reacted.

Constructors

Reaction({String? id, int? messageId, String? reaction, String? uid, int? reactedAt, User? reactedBy})
Constructs a new Reaction instance.
Reaction.fromMap(dynamic map)
Creates a new Reaction instance from a map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
messageId int?
getter/setter pair
reactedAt int?
getter/setter pair
reactedBy User?
getter/setter pair
reaction String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uid String?
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 Reaction.
toString() String
Generates a string representation of the Reaction.
override

Operators

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