PollOption class

Describes one answer option of a poll.

Inheritance
Available Extensions

Constructors

PollOption({required String text, required int voter_count, required int vote_percentage, required bool is_chosen, required bool is_being_chosen, int? extra, int? clientId})
Describes one answer option of a poll

Properties

clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
extra int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
is_being_chosen bool
True, if the option is being chosen by a pending setPollAnswer request.
read / write
is_chosen bool
True, if the option was chosen by the user.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
text String
Option text; 1-100 characters.
read / write
vote_percentage int
The percentage of votes for this option; 0-100.
read / write
voter_count int
Number of voters for this option, available only for closed or voted polls.
read / write

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

Constants

CONSTRUCTOR → const String
@type
"pollOption"