copyWith method
A copy with the given fields replaced.
Implementation
CheckboxStyle copyWith({
double? size,
Color? checkedColor,
Color? uncheckedColor,
Color? checkColor,
Radius? borderRadius,
double? gapAfterBox,
bool? interactive,
}) {
return CheckboxStyle(
size: size ?? this.size,
checkedColor: checkedColor ?? this.checkedColor,
uncheckedColor: uncheckedColor ?? this.uncheckedColor,
checkColor: checkColor ?? this.checkColor,
borderRadius: borderRadius ?? this.borderRadius,
gapAfterBox: gapAfterBox ?? this.gapAfterBox,
interactive: interactive ?? this.interactive,
);
}