merge method

Creates a copy of this CheckboxTileThemeData but with the given fields replaced with the new values.

Implementation

CheckboxTileThemeData merge(CheckboxTileThemeData? other) {
  // if null return current object
  if (other == null) return this;

  return copyWith(
    curve: other.curve,
    duration: other.duration,
    controlAffinity: other.controlAffinity,
    checkboxStyle: other.checkboxStyle,
    buttonStyle: other.buttonStyle,
  );
}