SingleSelectionDropdownWidget constructor

const SingleSelectionDropdownWidget({
  1. Key? key,
  2. required FutureOr<List<DropDownModel>> data,
  3. required String label,
  4. required ValueNotifier<DropDownModel?> listener,
  5. ValueChanged<DropDownModel?>? onSelected,
  6. String? validator(
    1. DropDownModel?
    )?,
  7. bool showSubtitle = true,
  8. bool showSearchBox = false,
  9. bool enabled = true,
})

Implementation

const SingleSelectionDropdownWidget({
  super.key,
  required this.data,
  required this.label,
  required this.listener,
  this.onSelected,
  this.validator,
  this.showSubtitle = true,
  this.showSearchBox = false,
  this.enabled = true,
});