Poll constructor

const Poll({
  1. required int id,
  2. required bool closed,
  3. required bool publicVoters,
  4. required bool multipleChoice,
  5. required bool quiz,
  6. required String question,
  7. required List<PollAnswerBase> answers,
  8. int? closePeriod,
  9. DateTime? closeDate,
})

Poll constructor.

Implementation

const Poll({
  required this.id,
  required this.closed,
  required this.publicVoters,
  required this.multipleChoice,
  required this.quiz,
  required this.question,
  required this.answers,
  this.closePeriod,
  this.closeDate,
}) : super._();