Sticker class

This object represents a sticker.

Constructors

Sticker({required String fileId, required String fileUniqueId, required String type, required int width, required int height, required bool isAnimated, required bool isVideo, PhotoSize? thumb, String? emoji, String? setName, File? premiumAnimation, MaskPosition? maskPosition, String? customEmojiId, int? fileSize})
Basic constructor

Properties

customEmojiId String?
Optional. For custom emoji stickers, unique identifier of the custom emoji
getter/setter pair
emoji String?
Optional. Emoji associated with the sticker
getter/setter pair
fileId String
Identifier for this file, which can be used to download or reuse the file
getter/setter pair
fileSize int?
Optional. File size in bytes
getter/setter pair
fileUniqueId String
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height int
Sticker height
getter/setter pair
isAnimated bool
True, if the sticker is animated
getter/setter pair
isVideo bool
True, if the sticker is a video sticker
getter/setter pair
maskPosition MaskPosition?
Optional. For mask stickers, the position where the mask should be placed
getter/setter pair
premiumAnimation File?
Optional. For premium regular stickers, premium animation for the sticker
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setName String?
Optional. Name of the sticker set to which the sticker belongs
getter/setter pair
thumb PhotoSize?
Optional. Sticker thumbnail in the .WEBP or .JPG format
getter/setter pair
type String
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video.
getter/setter pair
width int
Sticker width
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map
Creates a json from the object
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) Sticker
Creates a object from a json
listFromJsonArray(List json) List<Sticker>
Creates a list of object from a json array