PollOption class

Inheritance

Constructors

PollOption({String text, int voterCount, int votePercentage, bool isChosen, bool isBeingChosen})
Describes one answer option of a poll
PollOption.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isBeingChosen bool
isBeingChosen True, if the option is being chosen by a pending setPollAnswer request
read / write
isChosen bool
isChosen True, if the option was chosen by the user
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
text String
text Option text, 1-100 characters
read / write
votePercentage int
votePercentage The percentage of votes for this option, 0-100
read / write
voterCount int
voterCount Number of voters for this option, available only for closed or voted polls
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
A string representation of this object. [...]
inherited

Operators

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

Constants

CONSTRUCTOR → const String
'pollOption'