ReactionCount class abstract

Represents a reaction added to a message along with the number of times it was added.

Annotations
  • @freezed

Constructors

ReactionCount.new({@JsonKey(name: 'type') required ReactionType type, @JsonKey(name: 'total_count') required int totalCount})
Creates a new instance of ReactionCount.
const
factory
ReactionCount.fromJson(Map<String, dynamic> json)
Creates a ReactionCount object from JSON object.
factory

Properties

copyWith → $ReactionCountCopyWith<ReactionCount>
Create a copy of ReactionCount with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalCount int
Number of times the reaction was added.
no setterinherited
type ReactionType
Type of the reaction.
no setterinherited

Methods

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

Operators

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