MessageDice class
A dice message. The dice value is randomly generated by the server
- Inheritance
-
- Object
- Td
- TdObject
- MessageContent
- MessageDice
Constructors
- MessageDice({String? extra, int? client_id, DiceStickers? initial_state, DiceStickers? final_state, string? emoji, int32? value, int32? success_animation_frame_number})
-
MessageDice.fromMap(Map<
String, dynamic> map)
Properties
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- emoji ↔ string?
-
Emoji on which the dice throw animation is based
getter/setter pair
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- 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
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success_animation_frame_number ↔ int32?
-
Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded
getter/setter pair
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
- value ↔ int32?
-
The dice value. If the value is 0, the dice don't have final state yet
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited