MessageDice class

Inheritance

Constructors

MessageDice({DiceStickers initialState, DiceStickers finalState, String emoji, int value, int successAnimationFrameNumber})
A dice message. The dice value is randomly generated by the server
MessageDice.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

emoji String
emoji Emoji on which the dice throw animation is based
read / write
finalState DiceStickers
finalState 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-only, inherited
initialState DiceStickers
initialState 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-only, inherited
successAnimationFrameNumber int
successAnimationFrameNumber Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded
read / write
value int
value The dice value. If the value is 0, the dice don't have final state yet
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object. [...]
inherited

Operators

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

Constants

CONSTRUCTOR → const String
'messageDice'