copyWith method

BeuiCheckboxStyle copyWith({
  1. Color? fillColor,
  2. Color? markColor,
  3. Color? borderColor,
  4. double? size,
  5. double? borderRadius,
})

Returns a copy with the given fields replaced.

Implementation

BeuiCheckboxStyle copyWith({
  Color? fillColor,
  Color? markColor,
  Color? borderColor,
  double? size,
  double? borderRadius,
}) {
  return BeuiCheckboxStyle(
    fillColor: fillColor ?? this.fillColor,
    markColor: markColor ?? this.markColor,
    borderColor: borderColor ?? this.borderColor,
    size: size ?? this.size,
    borderRadius: borderRadius ?? this.borderRadius,
  );
}