CustomMenuButton constructor

const CustomMenuButton({
  1. Key? key,
  2. required Function onChanged,
  3. required dynamic items,
  4. String? selectedKey,
  5. String? firstOption,
  6. String? keyItemName,
  7. String hint = 'Select',
  8. Function? onPressed,
  9. String? text,
  10. Color? backgroundColor,
  11. Color? textColor,
  12. Color? overlayColor,
  13. Widget? child,
  14. Widget? leftIcon,
  15. Widget? rightIcon,
  16. bool disabled = false,
  17. TextStyle? textStyle,
  18. EdgeInsets? margin,
  19. EdgeInsets? padding,
  20. double? height,
  21. double? width,
  22. double? elevation,
  23. int? flex,
  24. BorderRadius? borderRadius,
  25. BorderSide? border,
  26. TextAlign? textAlign,
  27. VisualDensity? visualDensity,
  28. ButtonStyle? buttonStyle,
})

Implementation

const CustomMenuButton({
  Key? key,
  required this.onChanged,
  required this.items,
  this.selectedKey,
  this.firstOption,
  this.keyItemName,
  this.hint = 'Select',

  super.onPressed,
  super.text,
  super.backgroundColor,
  super.textColor,
  super.overlayColor,
  super.child,
  super.leftIcon,
  super.rightIcon,
  super.disabled,
  super.textStyle,
  super.margin,
  super.padding,
  super.height,
  super.width,
  super.elevation,
  super.flex,
  super.borderRadius,
  super.border,
  super.textAlign/*  = TextAlign.start */,
  super.visualDensity,
  super.buttonStyle,
}) : super(key: key);