MultipleChoice<T> constructor

const MultipleChoice<T>({
  1. Key? key,
  2. required Widget child,
  3. T? value,
  4. ValueChanged<T?>? onChanged,
  5. bool? enabled,
  6. bool? allowUnselect,
})

Creates a MultipleChoice.

Parameters:

  • child (Widget, required): Widget tree with choice items.
  • value (T?, optional): Currently selected value.
  • onChanged (ValueChanged<T?>?, optional): Selection callback.
  • enabled (bool?, optional): Whether choices are enabled.
  • allowUnselect (bool?, optional): Allow deselecting the current choice.

Implementation

const MultipleChoice({
  super.key,
  required this.child,
  this.value,
  this.onChanged,
  this.enabled,
  this.allowUnselect,
});