CustomDropdown constructor
const
CustomDropdown({
- required List<
DropDownDataModel> items, - required ValueChanged<
DropDownDataModel> onChanged, - ValueChanged<
String> ? onSearchChanged, - Key? key,
- DropDownDataModel? selectedItem,
- String? searchHint = 'Search options',
- String? hint = 'Select an option',
- bool isSearch = false,
- bool isNetworkSearch = false,
- bool isNetworkSearchLoading = false,
- bool readOnly = false,
- bool disabled = false,
- bool isError = false,
- String? label,
- String? errorMessage,
- Color? filledColor,
- bool isRequired = false,
- String? tooltipMessage,
- Widget? tooltipIcon,
- Color? tooltipIconColor,
Creates a CustomDropdown widget.
Implementation
const CustomDropdown({
required this.items,
required this.onChanged,
this.onSearchChanged,
super.key,
this.selectedItem,
this.searchHint = 'Search options',
this.hint = 'Select an option',
this.isSearch = false,
this.isNetworkSearch = false,
this.isNetworkSearchLoading = false,
this.readOnly = false,
this.disabled = false,
this.isError = false,
this.label,
this.errorMessage,
this.filledColor,
this.menuPadding,
this.isRequired = false,
this.tooltipMessage,
this.tooltipIcon,
this.tooltipIconColor,
});