GNCustomBottomSheetDropdownAutoSearch<T extends Object> constructor
GNCustomBottomSheetDropdownAutoSearch<T extends Object> ({
- required List<
T> initialList, - required List<
T> filter(- String query
- T? value,
- EdgeInsetsGeometry? padding,
- required Widget itemBuilder(
- T item
- FormFieldValidator<
String> ? validator, - required String hintText,
- String? label,
- double? borderRadius,
- String? headerText,
- bool isRequired = false,
- Widget? headerWidget,
- bool enabled = true,
- bool isDropDownDisable = false,
- required dynamic displayName,
- required String bottomSheetHeaderTitle,
- dynamic onItemSelected(
- T value
- String? subHeaderTitle,
- bool? filled,
- Color? filledColor,
- Widget? prefixIcon,
- Color? borderColor,
- String? displayNameFontFamily,
- double? hintTextSize,
- String? headingFontFamily,
- String? dropdownOptionFontFamily,
- Color? dropdownBorderColor,
- Color? dropdownErrorBorderColor,
- bool? isBorder = true,
- bool? isErrorBorder,
- Color? headerFontColor,
- Color? displayFontColor,
- Color? labelFontColor,
- Widget? arrowIcon,
- double? labelFontSize,
- double? headerFontSize,
- String? labelFontFamily,
- double? minHeight,
- double? maxHeight,
- double? width,
- double? labelSpace,
- InputBorder? border,
- InputBorder? focusBorder,
- InputBorder? errorBorder,
- InputBorder? enableBorder,
- InputBorder? disableBorder,
- TextAlign? textAlign,
- Color? errorColor,
- TextStyle? errorStyle,
- bool? isAutoFocusSearchField = false,
- Color? hintTextColor,
- 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,
});