AtomicDropdown<T> constructor
const
AtomicDropdown<T> ({
- Key? key,
- required List<
AtomicDropdownItem< items,T> > - required ValueChanged<
T?> ? onChanged, - T? value,
- String? hint,
- String? label,
- String? helperText,
- String? errorText,
- bool enabled = true,
- bool dense = false,
- bool isExpanded = false,
- Widget? icon,
- double iconSize = 24,
- bool isDense = false,
- bool enableFilter = false,
- String filterHint = 'Search...',
- Widget itemBuilder(
- AtomicDropdownItem<
T> item
- AtomicDropdownItem<
- Widget selectedItemBuilder(
- T value
- BoxDecoration? dropdownDecoration,
- EdgeInsetsGeometry? margin,
- AlignmentGeometry alignment = AlignmentDirectional.centerStart,
Implementation
const AtomicDropdown({
super.key,
required this.items,
required this.onChanged,
this.value,
this.hint,
this.label,
this.helperText,
this.errorText,
this.enabled = true,
this.dense = false,
this.isExpanded = false,
this.icon,
this.iconSize = 24,
this.isDense = false,
this.menuMaxHeight,
this.enableFilter = false,
this.filterHint = 'Search...',
this.itemBuilder,
this.selectedItemBuilder,
this.dropdownDecoration,
this.margin,
this.alignment = AlignmentDirectional.centerStart,
});