Poll constructor

const Poll({
  1. required int id,
  2. required String question,
  3. required List<PollOption> options,
  4. required int totalVoterCount,
  5. required List<MessageSender> recentVoterIds,
  6. required bool isAnonymous,
  7. required PollType type,
  8. required int openPeriod,
  9. required int closeDate,
  10. required bool isClosed,
})

Describes a poll

Implementation

const Poll({
  required this.id,
  required this.question,
  required this.options,
  required this.totalVoterCount,
  required this.recentVoterIds,
  required this.isAnonymous,
  required this.type,
  required this.openPeriod,
  required this.closeDate,
  required this.isClosed,
});