Sticker class

Inheritance

Constructors

Sticker({int setId, int width, int height, String emoji, bool isAnimated, bool isMask, MaskPosition maskPosition, List<ClosedVectorPath> outline, Thumbnail thumbnail, File sticker})
Describes a sticker
Sticker.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

emoji String
emoji Emoji corresponding to the sticker
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
height int
height Sticker height; as defined by the sender
read / write
isAnimated bool
isAnimated True, if the sticker is an animated sticker in TGS format
read / write
isMask bool
isMask True, if the sticker is a mask
read / write
maskPosition MaskPosition
maskPosition Position where the mask should be placed; may be null
read / write
outline List<ClosedVectorPath>
outline Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
setId int
setId The identifier of the sticker set to which the sticker belongs; 0 if none
read / write
sticker File
sticker File containing the sticker
read / write
thumbnail Thumbnail
thumbnail Sticker thumbnail in WEBP or JPEG format; may be null
read / write
width int
width Sticker width; as defined by the sender
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
A string representation of this object. [...]
inherited

Operators

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

Constants

CONSTRUCTOR → const String
'sticker'