PollOption constructor

const PollOption({
  1. required String text,
  2. required int voterCount,
  3. required int votePercentage,
  4. required bool isChosen,
  5. required bool isBeingChosen,
})

Describes one answer option of a poll

Implementation

const PollOption({
  required this.text,
  required this.voterCount,
  required this.votePercentage,
  required this.isChosen,
  required this.isBeingChosen,
});