Poll class

Poll.

ID: 86e18161.

Inheritance

Constructors

Poll({required int id, required bool closed, required bool publicVoters, required bool multipleChoice, required bool quiz, required String question, required List<PollAnswerBase> answers, int? closePeriod, DateTime? closeDate})
Poll constructor.
const
Poll.deserialize(BinaryReader reader)
Deserialize.
factory

Properties

answers List<PollAnswerBase>
Answers.
final
closed bool
closed: bit 0 of flags.0?true
final
closeDate DateTime?
Close Date.
final
closePeriod int?
Close Period.
final
flags int
Flags.
no setter
hashCode int
The hash code for this object.
no setterinherited
id int
Id.
final
multipleChoice bool
multiple_choice: bit 2 of flags.2?true
final
publicVoters bool
public_voters: bit 1 of flags.1?true
final
question String
Question.
final
quiz bool
quiz: bit 3 of flags.3?true
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(List<int> buffer) → void
Serialize.
override
toJson() Map<String, dynamic>
Converts an object to JSON.
override
toString() String
A string representation of this object.
inherited

Operators

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