Poll constructor

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

Implementation

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