copyWith method
Implementation
ContextMenuButtonStyle copyWith(
{Color? fgColor,
Color? bgColor,
Color? hoverFgColor,
Color? hoverBgColor,
EdgeInsets? padding,
TextStyle? textStyle,
TextStyle? shortcutTextStyle,
double disabledOpacity = .7}) {
return ContextMenuButtonStyle(
fgColor: fgColor ?? this.fgColor,
bgColor: bgColor ?? this.bgColor,
hoverFgColor: hoverFgColor ?? this.hoverFgColor,
hoverBgColor: hoverBgColor ?? this.hoverBgColor,
padding: padding ?? this.padding,
textStyle: textStyle ?? this.textStyle,
disabledOpacity: disabledOpacity,
);
}