StickerSet constructor

const StickerSet({
  1. @JsonKey(name: 'name') required String name,
  2. @JsonKey(name: 'title') required String title,
  3. @JsonKey(name: 'sticker_type') required StickerType stickerType,
  4. @JsonKey(name: 'stickers') required List<Sticker> stickers,
  5. @JsonKey(name: 'thumbnail') PhotoSize? thumbnail,
})

Constructs a StickerSet object

Implementation

const factory StickerSet({
  /// Sticker set name
  @JsonKey(name: 'name') required String name,

  /// Sticker set title
  @JsonKey(name: 'title') required String title,

  /// Type of stickers in the set, currently one of "regular", "mask",
  /// "custom_emoji"
  @JsonKey(name: 'sticker_type') required StickerType stickerType,

  /// List of all set stickers
  @JsonKey(name: 'stickers') required List<Sticker> stickers,

  /// Optional. Sticker set thumbnail in the .WEBP or .TGS format
  @JsonKey(name: 'thumbnail') PhotoSize? thumbnail,
}) = _StickerSet;