CustomDropdownMultiAPI constructor

const CustomDropdownMultiAPI({
  1. Key? key,
  2. double? width,
  3. bool isEnabled = true,
  4. bool isAddNewButton = false,
  5. void onAddNewPressed()?,
  6. required Future<List<DropDownResponse>> fetchData(
    1. String filter
    ),
  7. required void onChanged(
    1. List<DropDownResponse> selectedItem
    ),
  8. List<DropDownResponse>? selectedItem,
  9. String hintText = 'Select Items',
  10. bool isValidator = false,
  11. required GlobalKey<DropdownSearchState<DropDownResponse>> dropDownKey,
})

Implementation

const CustomDropdownMultiAPI({
  super.key,
  this.width,
  this.isEnabled = true,
  this.isAddNewButton = false,
  this.onAddNewPressed,
  required this.fetchData,
  required this.onChanged,
  this.selectedItem,
  this.hintText = 'Select Items',
  this.isValidator = false,
  required this.dropDownKey
});