MessageDice class final

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

Inheritance

Constructors

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

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
emoji → String
Emoji on which the dice throw animation is based
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
finalState → DiceStickers?
The animated stickers with the final dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known
final
hashCode → int
The hash code for this object.
no setterinherited
initialState → DiceStickers?
The animated stickers with the initial dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
successAnimationFrameNumber → int
Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded
final
value → int
The dice value. If the value is 0, the dice don't have final state yet
final

Methods

copyWith({DiceStickers? initialState()?, DiceStickers? finalState()?, String? emoji, int? value, int? successAnimationFrameNumber}) → MessageDice
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.