Poll class

Inheritance

Constructors

Poll({int id, String question, List<PollOption> options, int totalVoterCount, List<int> recentVoterUserIds, bool isAnonymous, PollType type, int openPeriod, int closeDate, bool isClosed})
Describes a poll
Poll.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

closeDate int
closeDate Point in time (Unix timestamp) when the poll will be automatically closed
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
id Unique poll identifier
read / write
isAnonymous bool
isAnonymous True, if the poll is anonymous
read / write
isClosed bool
isClosed True, if the poll is closed
read / write
openPeriod int
openPeriod Amount of time the poll will be active after creation, in seconds
read / write
options List<PollOption>
options List of poll answer options
read / write
question String
question Poll question, 1-300 characters
read / write
recentVoterUserIds List<int>
recentVoterUserIds User identifiers of recent voters, if the poll is non-anonymous
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
totalVoterCount int
totalVoterCount Total number of voters, participating in the poll
read / write
type PollType
type Type of the poll
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
'poll'