Sticker class
This object represents a sticker.
Constructors
- Sticker.new({required String fileId, required String fileUniqueId, required StickerType type, required int width, required int height, required bool isAnimated, required bool isVideo, PhotoSize? thumbnail, String? emoji, String? setName, MaskPosition? maskPosition, String? customEmojiId, int? fileSize, bool? needsRepainting})
-
Constructs a Sticker object
const
-
Sticker.fromJson(Map<
String, dynamic> json) -
Creates a Sticker object from JSON object
factory
Properties
- customEmojiId → String?
-
Optional. For custom emoji stickers, unique identifier of the custom emoji
final
- emoji → String?
-
Optional. Emoji associated with the sticker
final
- fileId → String
-
Identifier for this file, which can be used to download or reuse the file
final
- fileSize → int?
-
Optional. File size in bytes
final
- 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.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Sticker height
final
- isAnimated → bool
-
True, if the sticker is animated
final
- isVideo → bool
-
True, if the sticker is a video sticker
final
- maskPosition → MaskPosition?
-
Optional. For mask stickers, the position where the mask should be placed
final
- needsRepainting → bool?
-
Optional. True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places
final
-
Optional. For premium regular stickers, premium animation for the sticker
final
- 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
final
- thumbnail → PhotoSize?
-
Optional. Sticker thumbnail in the .WEBP or .JPG format
final
- type → StickerType
-
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.
final
- width → int
-
Sticker width
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts a Sticker object to JSON object
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited