merge method
Creates a copy of this CheckboxThemeData but with the given fields replaced with the new values.
Implementation
CheckboxThemeData merge(CheckboxThemeData? other) {
// if null return current object
if (other == null) return this;
return copyWith(
curve: other.curve,
duration: other.duration,
style: other.style,
);
}