RDropdownButton<T> constructor

const RDropdownButton<T>({
  1. Key? key,
  2. required List<DropdownMenuItem<T>> items,
  3. required void onChanged(
    1. T?
    )?,
  4. List<Widget> selectedItemBuilder(
    1. BuildContext
    )?,
  5. T? value,
  6. Widget? hint,
  7. Widget? disabledHint,
  8. void onTap()?,
  9. int elevation = 8,
  10. TextStyle? style,
  11. Widget? underline,
  12. Widget? icon,
  13. Color? iconDisabledColor,
  14. Color? iconEnabledColor,
  15. double iconSize = 24.0,
  16. bool isDense = false,
  17. bool isExpanded = false,
  18. double? itemHeight = kMinInteractiveDimension,
  19. double? menuWidth,
  20. Color? focusColor,
  21. FocusNode? focusNode,
  22. bool autofocus = false,
  23. Color? dropdownColor,
  24. double? menuMaxHeight,
  25. bool? enableFeedback,
  26. AlignmentGeometry alignment = AlignmentDirectional.centerStart,
  27. BorderRadius? borderRadius,
  28. EdgeInsetsGeometry? padding,
})

Implementation

const RDropdownButton({
  super.key,
  required this.items,
  required this.onChanged,
  this.selectedItemBuilder,
  this.value,
  this.hint,
  this.disabledHint,
  this.onTap,
  this.elevation = 8,
  this.style,
  this.underline,
  this.icon,
  this.iconDisabledColor,
  this.iconEnabledColor,
  this.iconSize = 24.0,
  this.isDense = false,
  this.isExpanded = false,
  this.itemHeight = kMinInteractiveDimension,
  this.menuWidth,
  this.focusColor,
  this.focusNode,
  this.autofocus = false,
  this.dropdownColor,
  this.menuMaxHeight,
  this.enableFeedback,
  this.alignment = AlignmentDirectional.centerStart,
  this.borderRadius,
  this.padding,
});