CLDropdown<T extends Object> constructor
const
CLDropdown<T extends Object> ({
- Key? key,
- required Widget itemBuilder(
- BuildContext,
- T
- required String valueToShow(
- T
- required String hint,
- Future<
(List< asyncSearchCallback({})?,T> , Object?)> - Future<
List< syncSearchCallback()?,T> > - List<
T> items = const [], - String? searchColumn,
- required bool isMultiple,
- required List<
T> selectedValues, - dynamic onSelectItem(
- T?
- int length = 10,
- List<
FormFieldValidator< ? validators,String> > - bool isEnabled = true,
- dynamic onSelectItems(
- List<
T>
- List<
- dynamic onClearItem()?,
- Color? fillColor,
- bool isCompact = false,
Implementation
const CLDropdown({
super.key,
required this.itemBuilder,
required this.valueToShow,
required this.hint,
this.asyncSearchCallback,
this.syncSearchCallback,
this.items = const [],
this.searchColumn,
required this.isMultiple,
required this.selectedValues,
this.onSelectItem,
this.length = 10,
this.validators,
this.isEnabled = true,
this.onSelectItems,
this.onClearItem,
this.fillColor,
this.isCompact = false,
});