copyWith method
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
HMCheckBoxTheme copyWith({
Color? color,
HMRadius? radius,
HMCheckBoxSize? size,
}) {
return HMCheckBoxTheme(
color: color ?? this.color,
radius: radius ?? this.radius,
size: size ?? this.size,
);
}