ModDropdownSearch<T> constructor
const
ModDropdownSearch<T> ({
- Key? key,
- required List<
ModDropdownSearchMenuItem< items,T> > - T? value,
- ModDropdownSearchSize size = ModDropdownSearchSize.md,
- ModDropdownSearchLabelPosition labelPosition = ModDropdownSearchLabelPosition.top,
- String? label,
- String? hint,
- String? searchHint,
- double borderRadius = 8.0,
- bool multiSelect = false,
- dynamic onChanged(
- T?
- String? validator(
- T?
- Widget? prefixIcon,
- Widget? suffixIcon,
- String? errorText,
- bool enabled = true,
- Color? backgroundColor,
- Color? textColor,
- Color? iconColor,
- Color? borderColor,
- Color? dropdownBackgroundColor,
- Color? searchBackgroundColor,
- Widget? checkIcon,
- String? closeButtonText,
- EdgeInsetsGeometry? searchBoxPadding,
- InputDecoration? searchDecoration,
- double? dropdownHeight,
- String displayStringForOption(
- T
Implementation
const ModDropdownSearch({
super.key,
required this.items,
this.value,
this.size = ModDropdownSearchSize.md,
this.labelPosition = ModDropdownSearchLabelPosition.top,
this.label,
this.hint,
this.searchHint,
this.borderRadius = 8.0,
this.multiSelect = false,
this.onChanged,
this.validator,
this.prefixIcon,
this.suffixIcon,
this.errorText,
this.enabled = true,
this.backgroundColor,
this.textColor,
this.iconColor,
this.borderColor,
this.dropdownBackgroundColor,
this.searchBackgroundColor,
this.checkIcon,
this.closeButtonText,
this.searchBoxPadding,
this.searchDecoration,
this.dropdownHeight,
this.displayStringForOption,
});