copyWith method

ZeroCheckboxStyle copyWith({
  1. Color? activeColor,
  2. Color? inactiveColor,
  3. Color? disabledColor,
  4. Color? checkColor,
  5. BorderRadius? borderRadius,
  6. double? borderSize,
})

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,
  );
}