StickerType enum

A class that represents the type of a sticker.

Currently, there are three types of stickers:

  • Regular stickers
  • Mask stickers
  • Custom emoji stickers
Inheritance

Constructors

StickerType(String type)
Constructs a new StickerType.
const

Values

regular → const StickerType

A regular sticker.

const StickerType("regular")
mask → const StickerType

A sticker that is meant to be used as a mask.

const StickerType("mask")
customEmoji → const StickerType

A sticker that is meant to be used as a custom emoji.

const StickerType("custom_emoji")

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The value of this enum.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Converts this StickerType to a String.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(String type) StickerType
Constructs a new StickerType from a String.

Constants

values → const List<StickerType>
A constant List of the values in this enum, in order of their declaration.