CustomMenuButton constructor
const
CustomMenuButton({
- Key? key,
- required Function onChanged,
- required dynamic items,
- String? selectedKey,
- String? firstOption,
- String? keyItemName,
- String hint = 'Select',
- Function? onPressed,
- String? text,
- Color? backgroundColor,
- Color? textColor,
- Color? overlayColor,
- Widget? child,
- Widget? leftIcon,
- Widget? rightIcon,
- bool disabled = false,
- TextStyle? textStyle,
- EdgeInsets? margin,
- EdgeInsets? padding,
- double? height,
- double? width,
- double? elevation,
- int? flex,
- BorderRadius? borderRadius,
- BorderSide? border,
- TextAlign? textAlign,
- VisualDensity? visualDensity,
- 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);