CollectivePoll constructor

CollectivePoll({
  1. String id = '',
  2. String collectiveId = '',
  3. String question = '',
  4. List<PollOption> options = const [],
  5. String createdBy = '',
  6. String creatorName = '',
  7. int createdAt = 0,
  8. int expiresAt = 0,
  9. bool isAnonymous = false,
  10. bool isMultiChoice = false,
  11. bool isClosed = false,
})

Implementation

CollectivePoll({
  this.id = '',
  this.collectiveId = '',
  this.question = '',
  this.options = const [],
  this.createdBy = '',
  this.creatorName = '',
  this.createdAt = 0,
  this.expiresAt = 0,
  this.isAnonymous = false,
  this.isMultiChoice = false,
  this.isClosed = false,
});