Poll constructor

const Poll({
  1. required int id,
  2. required FormattedText question,
  3. required List<PollOption> options,
  4. required int totalVoterCount,
  5. required List<MessageSender> recentVoterIds,
  6. required bool canGetVoters,
  7. required bool canSeeResults,
  8. required bool isAnonymous,
  9. required bool allowsMultipleAnswers,
  10. required bool allowsRevoting,
  11. required bool membersOnly,
  12. required List<String> countryCodes,
  13. required List<int> optionOrder,
  14. required PollType type,
  15. required int openPeriod,
  16. required int closeDate,
  17. required bool isClosed,
  18. PollVoteRestrictionReason? voteRestrictionReason,
})

Implementation

const Poll({
  required this.id,
  required this.question,
  required this.options,
  required this.totalVoterCount,
  required this.recentVoterIds,
  required this.canGetVoters,
  required this.canSeeResults,
  required this.isAnonymous,
  required this.allowsMultipleAnswers,
  required this.allowsRevoting,
  required this.membersOnly,
  required this.countryCodes,
  required this.optionOrder,
  required this.type,
  required this.openPeriod,
  required this.closeDate,
  required this.isClosed,
  this.voteRestrictionReason,
});