Sticker class

Implemented types

Constructors

Sticker({int setId, int width, int height, String emoji, bool isAnimated, bool isMask, MaskPosition maskPosition, PhotoSize thumbnail, File sticker})
Describes a sticker. setId The identifier of the sticker set to which the sticker belongs; 0 if none . width Sticker width; as defined by the sender . height Sticker height; as defined by the sender. emoji Emoji corresponding to the sticker . isAnimated True, if the sticker is an animated sticker in TGS format . isMask True, if the sticker is a mask . maskPosition Position where the mask should be placed; may be null . thumbnail Sticker thumbnail in WEBP or JPEG format; may be null . sticker File containing the sticker
Sticker.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

emoji String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
height int
read / write
isAnimated bool
read / write
isMask bool
read / write
maskPosition MaskPosition
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
setId int
read / write
sticker File
read / write
thumbnail PhotoSize
read / write
width int
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"sticker"