PollCard constructor

const PollCard({
  1. Key? key,
  2. required String question,
  3. required List<String> options,
  4. void onVote(
    1. int index,
    2. String option
    )?,
})

Implementation

const PollCard({
  super.key,
  required this.question,
  required this.options,
  this.onVote,
});