Poll constructor
const
Poll({
- required int id,
- required 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, - required PollType type,
- required int openPeriod,
- required int closeDate,
- required bool isClosed,
- 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,
});