ChatBoostSourceType enum

Type of the chat boost source.

Inheritance

Constructors

ChatBoostSourceType.fromJson(String json)
Creates a source type from a json object.
factory

Values

premium → const ChatBoostSourceType

The chat was boosted by the user's Telegram Premium subscription.

const ChatBoostSourceType._('premium')
giftCode → const ChatBoostSourceType

The chat was boosted using a gift code.

const ChatBoostSourceType._('gift_code')
giveaway → const ChatBoostSourceType

The chat was boosted using a giveaway.

const ChatBoostSourceType._('giveaway')

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
value String
Value of the source type.
final

Methods

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

Operators

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

Constants

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