Poll constructor
Poll({
- required PollQuestion question,
- required List<
PollAnswer> answers, - required Duration? expireAt,
- required bool isAllowMultiple,
- Snowflake? messageId,
- PollLayout layout = PollLayout.initial,
Implementation
Poll({
required this.question,
required this.answers,
required this.expireAt,
required this.isAllowMultiple,
this.messageId,
this.layout = PollLayout.initial,
});