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 ZeroCheckBoxStyle with the same properties as the original instance, except for the properties that are explicitly overridden.
Implementation
ZeroCheckboxStyle copyWith({
Color? activeColor,
Color? inactiveColor,
Color? disabledColor,
Color? checkColor,
BorderRadius? borderRadius,
double? borderSize,
}) {
return ZeroCheckboxStyle(
activeColor: activeColor ?? this.activeColor,
inactiveColor: inactiveColor ?? this.inactiveColor,
disabledColor: disabledColor ?? this.disabledColor,
checkColor: checkColor ?? this.checkColor,
borderRadius: borderRadius ?? this.borderRadius,
borderSize: borderSize ?? this.borderSize,
);
}