PollOptionResult constructor

const PollOptionResult({
  1. Key? key,
  2. required String label,
  3. required double percentage,
  4. bool isSelected = false,
  5. bool isLeading = false,
  6. PollStyle style = const PollStyle(),
  7. PollLocale locale = PollLocale.en,
})

Implementation

const PollOptionResult({
  super.key,
  required this.label,
  required this.percentage,
  this.isSelected = false,
  this.isLeading = false,
  this.style = const PollStyle(),
  this.locale = PollLocale.en,
});