EmojiCategory class final
EmojiCategory (emojiCategory) - basic class
Describes an emoji category.
- name: Name of the category.
- icon: Custom emoji sticker, which represents icon of the category.
- source: Source of stickers for the emoji category.
- isGreeting: True, if the category must be shown first when choosing a sticker for the start page.
Constructors
- EmojiCategory({required String name, required Sticker icon, required EmojiCategorySource source, required bool isGreeting})
-
EmojiCategory (emojiCategory) - basic class
const
-
EmojiCategory.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
- clientId → int?
-
Client ID, from which this object was received
no setterinherited
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- extra → dynamic
-
A sign from TDLib update
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Sticker
-
Custom emoji sticker, which represents icon of the category
final
- isGreeting → bool
-
True, if the category must be shown first when choosing a sticker for the start page
final
- name → String
-
Name of the category
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → EmojiCategorySource
-
Source of stickers for the emoji category
final
Methods
-
copyWith(
{String? name, Sticker? icon, EmojiCategorySource? source, bool? isGreeting}) → EmojiCategory - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type