copyWith method

  1. @override
HMCheckBoxTheme copyWith({
  1. Color? color,
  2. HMRadius? radius,
  3. Color? labelTextColor,
  4. Color? checkIconColor,
  5. 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,
  );
}