ChoiceWidget.pal constructor

ChoiceWidget.pal({
  1. required Choice choice,
  2. required OnTapChoiceWithContext onTap,
})

Implementation

factory ChoiceWidget.pal({
  required Choice choice,
  required OnTapChoiceWithContext onTap,
}) =>
    ChoiceWidget(
      choice,
      bgColor: choiceBgColor,
      onTapColor: successColor,
      onTap: onTap,
    );