MessageReactionCountUpdated class abstract

Represents reaction changes on a message with anonymous reactions.

Implemented types
Available extensions
Annotations
  • @freezed

Constructors

MessageReactionCountUpdated({@JsonKey.new(name: 'chat') required Chat chat, @JsonKey.new(name: 'message_id') required int messageId, @JsonKey.new(name: 'date') required int date, @JsonKey.new(name: 'reactions') required List<ReactionCount> reactions})
Creates a new instance of MessageReactionCountUpdated.
const
factory
MessageReactionCountUpdated.fromJson(Map<String, dynamic> json)
Creates a MessageReactionCountUpdated object from JSON object.
factory

Properties

chat → Chat
The chat containing the message.
no setterinherited
copyWith → $MessageReactionCountUpdatedCopyWith<MessageReactionCountUpdated>
Create a copy of MessageReactionCountUpdated with the given fields replaced by the non-null parameter values.
no setterinherited
date → int
Date of the change in Unix time.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
messageId → int
Unique message identifier inside the chat.
no setterinherited
reactions → List<ReactionCount>
List of reactions that are present on the message.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_MessageReactionCountUpdated value)) → TResult

Available on MessageReactionCountUpdated, provided by the MessageReactionCountUpdatedPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_MessageReactionCountUpdated value)?) → TResult?

Available on MessageReactionCountUpdated, provided by the MessageReactionCountUpdatedPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_MessageReactionCountUpdated value)?, {required TResult orElse()}) → TResult

Available on MessageReactionCountUpdated, provided by the MessageReactionCountUpdatedPatterns extension

A variant of map that fallback to returning orElse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this MessageReactionCountUpdated to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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