PrefChoice<T> constructor

const PrefChoice<T>({
  1. Key? key,
  2. Widget? title,
  3. required String pref,
  4. Widget? subtitle,
  5. required List<DropdownMenuItem<T>> items,
  6. ValueChanged<T>? onChange,
  7. bool? disabled,
  8. Widget? cancel,
  9. Widget? submit,
  10. bool radioFirst = true,
})

Create a PrefChoice Widget

Implementation

const PrefChoice({
  super.key,
  this.title,
  required this.pref,
  this.subtitle,
  required this.items,
  this.onChange,
  this.disabled,
  this.cancel,
  this.submit,
  this.radioFirst = true,
});