ModulaDropdown<T> constructor
const
ModulaDropdown<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,
- TextStyle? selectedTextStyle,
- bool showSelectedItemsAsChips = false,
- ValueChanged<
T> ? onChipRemoved, - Color? fillColor,
- Color? borderColor,
- Color? chipBackgroundColor,
- Color? chipTextColor,
Implementation
const ModulaDropdown({
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.selectedTextStyle,
this.showSelectedItemsAsChips = false,
this.onChipRemoved,
this.fillColor,
this.borderColor,
this.chipBackgroundColor,
this.chipTextColor,
this.menuBackgroundColor,
});