Poll constructor

Poll({
  1. required String id,
  2. required String question,
  3. required List<PollOption> options,
  4. required int totalVoterCount,
  5. required bool isClosed,
  6. required bool isAnonymous,
  7. required PollType type,
  8. required bool allowsMultipleAnswers,
  9. int? correctOptionId,
  10. String? explanation,
  11. List<MessageEntity>? explanationEntities,
  12. int? openPeriod,
  13. int? closeDate,
})

Basic constructor

Implementation

Poll({
  required this.id,
  required this.question,
  required this.options,
  required this.totalVoterCount,
  required this.isClosed,
  required this.isAnonymous,
  required this.type,
  required this.allowsMultipleAnswers,
  this.correctOptionId,
  this.explanation,
  this.explanationEntities,
  this.openPeriod,
  this.closeDate,
});