ReactionEvent class Null safety

Represents an reaction event that happens on BaseMessage.

This object is needed to apply to the BaseMessage based on messageId when this is acquired from ChannelEventHandler.onReactionUpdated

Implemented types
Annotations

Constructors

ReactionEvent({required ChannelType channelType, required String channelUrl, required int messageId, required String key, required String userId, required ReactionEventAction operation, required int updatedAt})
ReactionEvent.fromJson(Map<String, dynamic> json)
factory

Properties

channelType ChannelType
@JsonKey(defaultValue: ChannelType.group, unknownEnumValue: ChannelType.group), final
channelUrl String
@JsonKey(defaultValue: ''), final
hashCode int
The hash code for this object. [...]
read-only, inherited
key String
Reaction key
@JsonKey(name: 'reaction'), final
messageId int
Corresponding message id
@JsonKey(name: 'msg_id'), read / write
operation ReactionEventAction
Operation type of this event
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
updatedAt int
Timestamp for update
final
userId String
User's id who triggers this event
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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