MessageDice class final
MessageDice (messageDice) - child of MessageContent
A dice message. The dice value is randomly generated by the server.
- initialState: The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known (optional).
- finalState: The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known (optional).
- emoji: Emoji on which the dice throw animation is based.
- value: The dice value. If the value is 0, the dice don't have final state yet.
- successAnimationFrameNumber: Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.
- Inheritance
-
- Object
- TdObject
- MessageContent
- MessageDice
Constructors
- MessageDice({DiceStickers? initialState, DiceStickers? finalState, required String emoji, required int value, required int successAnimationFrameNumber})
-
MessageDice (messageDice) - child of MessageContent
const
-
MessageDice.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
- clientId → int?
-
Client ID, from which this object was received
no setterinherited
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- emoji → String
-
Emoji on which the dice throw animation is based
final
- extra → dynamic
-
A sign from TDLib update
no setterinherited
- finalState → DiceStickers?
-
The animated stickers with the final dice animation; may be null if unknown. The update 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. The update 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 -
Copy model with modified properties.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type