copyWith method
HMCheckBoxTheme
copyWith({
- Color? color,
- HMRadius? radius,
- Color? labelTextColor,
- Color? checkIconColor,
- HMCheckBoxSize? size,
override
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,
Color? labelTextColor,
Color? checkIconColor,
HMCheckBoxSize? size,
}) {
return HMCheckBoxTheme(
color: color ?? this.color,
radius: radius ?? this.radius,
labelTextColor: labelTextColor ?? this.labelTextColor,
checkIconColor: checkIconColor ?? this.checkIconColor,
size: size ?? this.size,
);
}