CustomDropdownMulti constructor

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

Implementation

CustomDropdownMulti(
    {super.key,
    this.width,
    this.isEnabled = true,
    this.isAddNewButton = false,
    this.onAddNewPressed,
    this.items,
    this.fetchData,
    required this.onChanged,
    this.selectedItem,
    this.hintText = 'Select Items',
    this.isValidator = false,
    this.validationMessage,
    required this.dropDownKey}) : dropdownIndex = _register(dropDownKey);