EmojiReaction class final

Contains information about an emoji reaction

Inheritance

Constructors

EmojiReaction({required String emoji, required String title, required bool isActive, required Sticker staticIcon, required Sticker appearAnimation, required Sticker selectAnimation, required Sticker activateAnimation, required Sticker effectAnimation, Sticker? aroundAnimation, Sticker? centerAnimation, dynamic extra, int? clientId})
Contains information about an emoji reaction
const
EmojiReaction.fromJson(Map<String, dynamic> json)
Parses a EmojiReaction from TDLib JSON.
factory

Properties

activateAnimation → Sticker
Activate animation for the reaction
final
appearAnimation → Sticker
Appear animation for the reaction
final
aroundAnimation → Sticker?
Around animation for the reaction; may be null
final
centerAnimation → Sticker?
Center animation for the reaction; may be null
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
effectAnimation → Sticker
Effect animation for the reaction
final
emoji → String
Text representation of the reaction
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
isActive → bool
True, if the reaction can be added to new messages and enabled in chats
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectAnimation → Sticker
Select animation for the reaction
final
staticIcon → Sticker
Static icon for the reaction
final
title → String
Reaction title
final

Methods

copyWith({String? emoji, String? title, bool? isActive, Sticker? staticIcon, Sticker? appearAnimation, Sticker? selectAnimation, Sticker? activateAnimation, Sticker? effectAnimation, Sticker? aroundAnimation()?, Sticker? centerAnimation()?, dynamic extra, int? clientId}) → EmojiReaction
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.