copyWith method
Creates a copy with selected values replaced.
Implementation
FdcGridPopupMenuStyle copyWith({
Color? backgroundColor,
Color? borderColor,
Color? shadowColor,
Color? textColor,
Color? secondaryTextColor,
Color? iconColor,
Color? disabledTextColor,
Color? disabledIconColor,
Color? hoverColor,
Color? selectedItemColor,
Color? pressedColor,
Color? separatorColor,
}) {
return FdcGridPopupMenuStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
borderColor: borderColor ?? this.borderColor,
shadowColor: shadowColor ?? this.shadowColor,
textColor: textColor ?? this.textColor,
secondaryTextColor: secondaryTextColor ?? this.secondaryTextColor,
iconColor: iconColor ?? this.iconColor,
disabledTextColor: disabledTextColor ?? this.disabledTextColor,
disabledIconColor: disabledIconColor ?? this.disabledIconColor,
hoverColor: hoverColor ?? this.hoverColor,
selectedItemColor: selectedItemColor ?? this.selectedItemColor,
pressedColor: pressedColor ?? this.pressedColor,
separatorColor: separatorColor ?? this.separatorColor,
);
}