Poll constructor
Poll({
- required int id,
- FormattedText? question,
- required List<
PollOption> options, - required int totalVoterCount,
- required List<
MessageSender> recentVoterIds, - required bool canGetVoters,
- required bool canSeeResults,
- required bool isAnonymous,
- required bool allowsMultipleAnswers,
- required bool allowsRevoting,
- required bool membersOnly,
- required List<
String> countryCodes, - required List<
int> optionOrder, - PollType? type,
- required int openPeriod,
- required int closeDate,
- required bool isClosed,
- PollVoteRestrictionReason? voteRestrictionReason,
Implementation
Poll({
required this.id,
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,
this.type,
required this.openPeriod,
required this.closeDate,
required this.isClosed,
this.voteRestrictionReason,
});