PollOptionButton constructor

const PollOptionButton({
  1. Key? key,
  2. required String label,
  3. required VoidCallback onPressed,
  4. PollStyle style = const PollStyle(),
  5. bool? isSelected,
  6. bool isLoading = false,
})

Implementation

const PollOptionButton({
  super.key,
  required this.label,
  required this.onPressed,
  this.style = const PollStyle(),
  this.isSelected,
  this.isLoading = false,
});