merge method

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

Implementation

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

  return copyWith(
    curve: other.curve,
    duration: other.duration,
    style: other.style,
  );
}