MultipleChoice<T> constructor
const
MultipleChoice<T> ({
- Key? key,
- required Widget child,
- T? value,
- ValueChanged<
T?> ? onChanged, - bool? enabled,
- 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,
});