CustomDropdown<T> constructor
const
CustomDropdown<T> ({
- required Widget? child,
- required List<
DropdownItem< items,T> > - required void onChange(
- T,
- int
- Key? key,
- bool hideIcon = false,
- DropdownStyle dropdownStyle = const DropdownStyle(),
- DropdownButtonStyle dropdownButtonStyle = const DropdownButtonStyle(),
- int? selectedIndex,
- IconData? icon,
- bool leadingIcon = false,
Implementation
const CustomDropdown({
required this.child,
required this.items,
required this.onChange,
super.key,
this.hideIcon = false,
this.dropdownStyle = const DropdownStyle(),
this.dropdownButtonStyle = const DropdownButtonStyle(),
this.selectedIndex,
this.icon,
this.leadingIcon = false,
});