StickerSet class final
Represents a sticker set
Constructors
-
StickerSet({required int id, required String title, required String name, Thumbnail? thumbnail, required List<
ClosedVectorPath> thumbnailOutline, required bool isInstalled, required bool isArchived, required bool isOfficial, required StickerFormat stickerFormat, required StickerType stickerType, required bool isViewed, required List<Sticker> stickers, required List<Emojis> emojis, dynamic extra, int? clientId}) -
Represents a sticker set
const
-
StickerSet.fromJson(Map<
String, dynamic> json) -
Parses a StickerSet from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
-
emojis
→ List<
Emojis> -
A list of emoji corresponding to the stickers in the same order. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Identifier of the sticker set
final
- isArchived → bool
-
True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously
final
- isInstalled → bool
-
True, if the sticker set has been installed by the current user
final
- isOfficial → bool
-
True, if the sticker set is official
final
- isViewed → bool
-
True for already viewed trending sticker sets
final
- name → String
-
Name of the sticker set
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stickerFormat → StickerFormat
-
Format of the stickers in the set
final
-
stickers
→ List<
Sticker> -
List of stickers in this set
final
- stickerType → StickerType
-
Type of the stickers in the set
final
- thumbnail → Thumbnail?
-
Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed
final
-
thumbnailOutline
→ List<
ClosedVectorPath> -
Sticker set thumbnail's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner
final
- title → String
-
Title of the sticker set
final
Methods
-
copyWith(
{int? id, String? title, String? name, Thumbnail? thumbnail()?, List< ClosedVectorPath> ? thumbnailOutline, bool? isInstalled, bool? isArchived, bool? isOfficial, StickerFormat? stickerFormat, StickerType? stickerType, bool? isViewed, List<Sticker> ? stickers, List<Emojis> ? emojis, dynamic extra, int? clientId}) → StickerSet -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto 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.