CustomDropdown<T> constructor

const CustomDropdown<T>({
  1. Key? key,
  2. void onChange(
    1. T,
    2. int
    )?,
  3. required List<DropdownItem<T>> items,
  4. String? placeholder,
  5. DropdownStyle? dropdownStyle,
  6. DropdownButtonStyle? dropdownButtonStyle,
  7. bool withArrow = true,
  8. DropdownController? controller,
  9. int? startIndex,
  10. bool enabled = true,
})

Implementation

const CustomDropdown({
  Key? key,
  this.onChange,
  required this.items,
  this.placeholder,
  this.dropdownStyle,
  this.dropdownButtonStyle,
  this.withArrow = true,
  this.controller,
  this.startIndex,
  this.enabled = true,
}) : super(key: key);