AppDropDown<T>.singleSelect constructor

const AppDropDown<T>.singleSelect({
  1. Key? key,
  2. String? title,
  3. bool isMultiDropDown = false,
  4. required List<T> list,
  5. required T? selectedValue,
  6. required dynamic singleValueBuilder(
    1. T
    )?,
  7. required dynamic itemBuilder(
    1. T
    ),
  8. required dynamic onSingleChange(
    1. T
    )?,
  9. dynamic onMultiChange(
    1. List<T>
    )?,
  10. dynamic multiValueBuilder(
    1. T
    )?,
  11. List<T>? multiSelectedValue,
  12. String? hint,
  13. bool isFilled = false,
  14. Color? borderColor,
  15. double? radius,
  16. EdgeInsets? padding,
  17. EdgeInsets? boxPadding,
  18. double? menuMaxHeight,
  19. double? width,
  20. Widget? textBox,
  21. dynamic onCreateController(
    1. MenuController
    )?,
  22. String? error,
  23. bool isEnabled = true,
  24. dynamic onTap()?,
  25. Widget? prefixIcon,
  26. Widget? suffixIcon,
})

Implementation

const AppDropDown.singleSelect({
  super.key,
  this.title,
  this.isMultiDropDown = false,
  required this.list,
  required this.selectedValue,
  required this.singleValueBuilder,
  required this.itemBuilder,
  required this.onSingleChange,
  this.onMultiChange,
  this.multiValueBuilder,
  this.multiSelectedValue,
  this.hint,
  this.isFilled = false,
  this.borderColor,
  this.radius,
  this.padding,
  this.boxPadding,
  this.menuMaxHeight,
  this.width,
  this.textBox,
  this.onCreateController,
  this.error,
  this.isEnabled = true,
  this.onTap,
  this.prefixIcon,
  this.suffixIcon,
});