copyWith method
If the caller passes in a value for a parameter, use that value, otherwise use the value from this object.
A new instance of ZeroButtonIconStyle with the same properties as the original instance, except for the properties that are explicitly overridden.
Implementation
ZeroButtonIconStyle copyWith({
Color? color,
Color? iconColor,
double? iconSize,
}) {
return ZeroButtonIconStyle(
color: color ?? this.color,
iconColor: iconColor ?? this.iconColor,
iconSize: iconSize ?? this.iconSize,
);
}