Poll constructor

Poll({
  1. required PollQuestion question,
  2. required List<PollAnswer> answers,
  3. required Duration? expireAt,
  4. required bool isAllowMultiple,
  5. Snowflake? messageId,
  6. PollLayout layout = PollLayout.initial,
})

Implementation

Poll({
  required this.question,
  required this.answers,
  required this.expireAt,
  required this.isAllowMultiple,
  this.messageId,
  this.layout = PollLayout.initial,
});