Dropdown<T> constructor
const
Dropdown<T> ({
- Key? key,
- required List<
DropdownItem< items,T> > - T? value,
- String? label,
- String? hint,
- IconData? icon,
- String? validator(
- T?
- ValueChanged<
T?> ? onChanged, - bool enabled = true,
- bool isExpanded = true,
- ValueChanged<
T?> ? onFieldSaved, - double borderRadius = AppRadius.medium,
- AutovalidateMode? autovalidateMode,
- Color? dropdownColor,
Implementation
const Dropdown({
super.key,
required this.items,
this.value,
this.label,
this.hint,
this.icon,
this.validator,
this.onChanged,
this.enabled = true,
this.isExpanded = true,
this.onFieldSaved,
this.borderRadius = AppRadius.medium,
this.autovalidateMode,
this.dropdownColor,
});