ModulaDropdownButton<T> constructor
const
ModulaDropdownButton<T> ({
- required List<
T> items, - Key? key,
- T? selectedItem,
- List<
T> ? selectedItems, - bool isMultiSelect = false,
- String? hintText,
- String? labelText,
- String? errorText,
- ValueChanged<
T?> ? onChanged, - ValueChanged<
List< ? onMultiChanged,T> > - bool isSearchable = false,
- String itemLabelBuilder(
- T
- Widget itemBuilder(
- T
- bool enabled = true,
- Color? dropdownBackgroundColor,
- Color? textColor,
Implementation
const ModulaDropdownButton({
required this.items,
super.key,
this.selectedItem,
this.selectedItems,
this.isMultiSelect = false,
this.hintText,
this.labelText,
this.errorText,
this.onChanged,
this.onMultiChanged,
this.isSearchable = false,
this.itemLabelBuilder,
this.itemBuilder,
this.enabled = true,
this.dropdownBackgroundColor,
this.textColor,
this.menuBackgroundColor,
this.menuItemTextColor,
});