Poll constructor
const
Poll({
- required int id,
- required bool closed,
- required bool publicVoters,
- required bool multipleChoice,
- required bool quiz,
- required bool openAnswers,
- required bool revotingDisabled,
- required bool shuffleAnswers,
- required bool hideResultsUntilClose,
- required bool creator,
- required bool subscribersOnly,
- required TextWithEntitiesBase question,
- required List<
PollAnswerBase> answers, - int? closePeriod,
- DateTime? closeDate,
- List<
String> ? countriesIso2, - required int hash,
Poll constructor.
Implementation
const Poll({
required this.id,
required this.closed,
required this.publicVoters,
required this.multipleChoice,
required this.quiz,
required this.openAnswers,
required this.revotingDisabled,
required this.shuffleAnswers,
required this.hideResultsUntilClose,
required this.creator,
required this.subscribersOnly,
required this.question,
required this.answers,
this.closePeriod,
this.closeDate,
this.countriesIso2,
required this.hash,
}) : super._();