merge method

CheckboxStyle merge(
  1. CheckboxStyle? other
)

This style, with any unset field taken from other, field by field.

Implementation

CheckboxStyle merge(CheckboxStyle? other) {
  if (other == null) {
    return this;
  }
  return CheckboxStyle(
    size: size ?? other.size,
    checkedColor: checkedColor ?? other.checkedColor,
    uncheckedColor: uncheckedColor ?? other.uncheckedColor,
    checkColor: checkColor ?? other.checkColor,
    borderRadius: borderRadius ?? other.borderRadius,
    gapAfterBox: gapAfterBox ?? other.gapAfterBox,
    interactive: interactive ?? other.interactive,
  );
}