MessageDice class

A dice message. The dice value is randomly generated by the server.

Inheritance
Available Extensions

Constructors

MessageDice({DiceStickers? initial_state, DiceStickers? final_state, required String emoji, required int value, required int success_animation_frame_number, int? extra, int? clientId})
A dice message. The dice value is randomly generated by the server

Properties

clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
emoji String
Emoji on which the dice throw animation is based.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
final_state DiceStickers?
The animated stickers with the final dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
initial_state DiceStickers?
The animated stickers with the initial dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
success_animation_frame_number int
Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.
read / write
value int
The dice value. If the value is 0, the dice don't have final state yet.
read / write

Methods

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

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) MessageDice?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"messageDice"