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