copyWith method

ContextMenuButtonStyle copyWith({
  1. Color? fgColor,
  2. Color? bgColor,
  3. Color? hoverFgColor,
  4. Color? hoverBgColor,
  5. EdgeInsets? padding,
  6. TextStyle? textStyle,
  7. TextStyle? shortcutTextStyle,
  8. double disabledOpacity = .7,
})

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,
  );
}