PollTypeQuiz class

Inheritance

Constructors

PollTypeQuiz({int correctOptionId, FormattedText explanation})
A poll in quiz mode, which has exactly one correct answer option and can be answered only once
PollTypeQuiz.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

correctOptionId int
correctOptionId 0-based identifier of the correct answer option; -1 for a yet unanswered poll
read / write
explanation FormattedText
explanation 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
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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
'pollTypeQuiz'