Poll class

Implemented types

Constructors

Poll({int id, String question, List<PollOption> options, int totalVoterCount, bool isClosed})
Describes a poll. id Unique poll identifier . question Poll question, 1-255 characters . options List of poll answer options . totalVoterCount Total number of voters, participating in the poll . isClosed True, if the poll is closed
Poll.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
id int
read / write
isClosed bool
read / write
options List<PollOption>
read / write
question String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
totalVoterCount 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
"poll"