StickerSet class abstract

This object represents a sticker set.

Annotations
  • @freezed

Constructors

StickerSet.new({@JsonKey(name: 'name') required String name, @JsonKey(name: 'title') required String title, @JsonKey(name: 'sticker_type') required StickerType stickerType, @JsonKey(name: 'stickers') required List<Sticker> stickers, @JsonKey(name: 'thumbnail') PhotoSize? thumbnail})
Constructs a StickerSet object
const
factory
StickerSet.fromJson(Map<String, dynamic> json)
Creates a StickerSet object from JSON object
factory

Properties

copyWith → $StickerSetCopyWith<StickerSet>
Create a copy of StickerSet with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
Sticker set name
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stickers List<Sticker>
List of all set stickers
no setterinherited
stickerType StickerType
Type of stickers in the set, currently one of "regular", "mask", "custom_emoji"
no setterinherited
thumbnail PhotoSize?
Optional. Sticker set thumbnail in the .WEBP or .TGS format
no setterinherited
title String
Sticker set title
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this StickerSet to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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