PollTypeQuiz class

A poll in quiz mode, which has exactly one correct answer option and can be answered only once.

Inheritance
Available Extensions

Constructors

PollTypeQuiz({required int correct_option_id, required FormattedText explanation, int? extra, int? clientId})
A poll in quiz mode, which has exactly one correct answer option and can be answered only once

Properties

clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
correct_option_id int
0-based identifier of the correct answer option; -1 for a yet unanswered poll.
read / write
explanation FormattedText
Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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) PollTypeQuiz?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"pollTypeQuiz"