PollOption class

Implemented types

Constructors

PollOption({String text, int voterCount, int votePercentage, bool isChosen, bool isBeingChosen})
Describes one answer option of a poll. text Option text, 1-100 characters . voterCount Number of voters for this option, available only for closed or voted polls . votePercentage The percentage of votes for this option, 0-100. isChosen True, if the option was chosen by the user . isBeingChosen True, if the option is being chosen by a pending setPollAnswer request
PollOption.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isBeingChosen bool
read / write
isChosen bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
text String
read / write
votePercentage int
read / write
voterCount int
read / write

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
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"pollOption"