CustomDropdownSingle constructor

CustomDropdownSingle({
  1. Key? key,
  2. double? width,
  3. required String hintText,
  4. required DropDownResponse? selectedItem,
  5. bool isEnabled = true,
  6. bool isAddNewButton = false,
  7. bool isAddManually = false,
  8. List<DropDownResponse>? items,
  9. Future<List<DropDownResponse>> fetchData(
    1. String
    )?,
  10. VoidCallback? onAddNewPressed,
  11. ValueChanged<String?>? onManuallyPressed,
  12. String? validationMessage,
  13. ValueChanged<DropDownResponse?>? onChanged,
  14. bool isValidator = false,
  15. GlobalKey<DropdownSearchState<DropDownResponse>>? dropDownKey,
  16. VerticalDirection direction = VerticalDirection.down,
})

Implementation

CustomDropdownSingle({
  super.key,
  this.width,
  required this.hintText,
  required this.selectedItem,
  this.isEnabled = true,
  this.isAddNewButton = false,
  this.isAddManually = false,
  this.items,
  this.fetchData,
  this.onAddNewPressed,
  this.onManuallyPressed,
  this.validationMessage,
  this.onChanged,
  this.isValidator = false,
  this.dropDownKey,
  this.direction = VerticalDirection.down,
});