PollWidget constructor

const PollWidget({
  1. Key? key,
  2. required String question,
  3. required List<PollOption> options,
  4. ValueChanged<int>? onVote,
  5. String? totalLabel,
  6. bool allowRevote = false,
  7. String? closedAt,
})

Implementation

const PollWidget({
  super.key,
  required this.question,
  required this.options,
  this.onVote,
  this.totalLabel,
  this.allowRevote = false,
  this.closedAt,
});