CustomDropdown<T> constructor

const CustomDropdown<T>({
  1. required Widget? child,
  2. required List<DropdownItem<T>> items,
  3. required void onChange(
    1. T,
    2. int
    ),
  4. Key? key,
  5. bool hideIcon = false,
  6. DropdownStyle dropdownStyle = const DropdownStyle(),
  7. DropdownButtonStyle dropdownButtonStyle = const DropdownButtonStyle(),
  8. int? selectedIndex,
  9. IconData? icon,
  10. 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,
});