copyWith method

CheckboxStyle copyWith({
  1. double? size,
  2. Color? checkedColor,
  3. Color? uncheckedColor,
  4. Color? checkColor,
  5. Radius? borderRadius,
  6. double? gapAfterBox,
  7. bool? interactive,
})

A copy with the given fields replaced.

Implementation

CheckboxStyle copyWith({
  double? size,
  Color? checkedColor,
  Color? uncheckedColor,
  Color? checkColor,
  Radius? borderRadius,
  double? gapAfterBox,
  bool? interactive,
}) {
  return CheckboxStyle(
    size: size ?? this.size,
    checkedColor: checkedColor ?? this.checkedColor,
    uncheckedColor: uncheckedColor ?? this.uncheckedColor,
    checkColor: checkColor ?? this.checkColor,
    borderRadius: borderRadius ?? this.borderRadius,
    gapAfterBox: gapAfterBox ?? this.gapAfterBox,
    interactive: interactive ?? this.interactive,
  );
}