GNCustomBottomSheetDropdownAutoSearch<T extends Object> constructor

GNCustomBottomSheetDropdownAutoSearch<T extends Object>({
  1. required List<T> initialList,
  2. required List<T> filter(
    1. String query
    )?,
  3. T? value,
  4. EdgeInsetsGeometry? padding,
  5. required Widget itemBuilder(
    1. T item
    ),
  6. FormFieldValidator<String>? validator,
  7. required String hintText,
  8. String? label,
  9. double? borderRadius,
  10. String? headerText,
  11. bool isRequired = false,
  12. Widget? headerWidget,
  13. bool enabled = true,
  14. bool isDropDownDisable = false,
  15. required dynamic displayName,
  16. required String bottomSheetHeaderTitle,
  17. dynamic onItemSelected(
    1. T value
    )?,
  18. String? subHeaderTitle,
  19. bool? filled,
  20. Color? filledColor,
  21. Widget? prefixIcon,
  22. Color? borderColor,
  23. String? displayNameFontFamily,
  24. double? hintTextSize,
  25. String? headingFontFamily,
  26. String? dropdownOptionFontFamily,
  27. Color? dropdownBorderColor,
  28. Color? dropdownErrorBorderColor,
  29. bool? isBorder = true,
  30. bool? isErrorBorder,
  31. Color? headerFontColor,
  32. Color? displayFontColor,
  33. Color? labelFontColor,
  34. Widget? arrowIcon,
  35. double? labelFontSize,
  36. double? headerFontSize,
  37. String? labelFontFamily,
  38. double? minHeight,
  39. double? maxHeight,
  40. double? width,
  41. double? labelSpace,
  42. InputBorder? border,
  43. InputBorder? focusBorder,
  44. InputBorder? errorBorder,
  45. InputBorder? enableBorder,
  46. InputBorder? disableBorder,
  47. TextAlign? textAlign,
  48. Color? errorColor,
  49. TextStyle? errorStyle,
  50. bool? isAutoFocusSearchField = false,
  51. Color? hintTextColor,
  52. String? bottomSheetLabelText,
})

Implementation

GNCustomBottomSheetDropdownAutoSearch({
  required this.initialList,
  required this.filter,
  this.value,
  this.padding,
  required this.itemBuilder, // Changed to itemBuilder
  this.validator,
  required this.hintText,
  this.label,
  this.borderRadius,
  this.headerText,
  this.isRequired = false,
  this.headerWidget,
  this.enabled = true,
  this.isDropDownDisable = false,
  required this.displayName,
  required this.bottomSheetHeaderTitle,
  this.onItemSelected,
  this.subHeaderTitle,
  this.filled,
  this.filledColor,
  this.prefixIcon,
  this.borderColor,
  this.displayNameFontFamily,
  this.hintTextSize,
  this.headingFontFamily,
  this.dropdownOptionFontFamily,
  this.dropdownBorderColor,
  this.dropdownErrorBorderColor,
  this.isBorder = true,
  this.isErrorBorder,
  this.headerFontColor,
  this.displayFontColor,
  this.labelFontColor,
  this.arrowIcon,
  this.labelFontSize,
  this.headerFontSize,
  this.labelFontFamily,
  this.minHeight,
  this.maxHeight,
  this.width,
  this.labelSpace,
  this.border,
  this.focusBorder,
  this.errorBorder,
  this.enableBorder,
  this.disableBorder,
  this.textAlign,
  this.errorColor,
  this.errorStyle,
  this.isAutoFocusSearchField = false,
  this.hintTextColor,
  this.bottomSheetLabelText,
});