Sticker class final

Describes a sticker

Inheritance

Constructors

Sticker({required int id, required int setId, required int width, required int height, required String emoji, required StickerFormat format, required StickerFullType fullType, required List<ClosedVectorPath> outline, Thumbnail? thumbnail, required File sticker, dynamic extra, int? clientId})
Describes a sticker
const
Sticker.fromJson(Map<String, dynamic> json)
Parses a Sticker from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object.
final
emoji → String
Emoji corresponding to the sticker
final
extra → dynamic
"@extra" of the request this object answers.
final
format → StickerFormat
Sticker format
final
fullType → StickerFullType
Sticker's full type
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
Sticker height; as defined by the sender
final
id → int
Unique sticker identifier within the set; 0 if none
final
outline → List<ClosedVectorPath>
Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
setId → int
Identifier of the sticker set to which the sticker belongs; 0 if none
final
sticker → File
File containing the sticker
final
thumbnail → Thumbnail?
Sticker thumbnail in WEBP or JPEG format; may be null
final
width → int
Sticker width; as defined by the sender
final

Methods

copyWith({int? id, int? setId, int? width, int? height, String? emoji, StickerFormat? format, StickerFullType? fullType, List<ClosedVectorPath>? outline, Thumbnail? thumbnail()?, File? sticker, dynamic extra, int? clientId}) → Sticker
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to 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.