merge method

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

Implementation

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

  return copyWith(
    duration: other.duration,
    reverseDuration: other.reverseDuration,
    switchInCurve: other.switchInCurve,
    switchOutCurve: other.switchOutCurve,
    transitionBuilder: other.transitionBuilder,
    layoutBuilder: other.layoutBuilder,
    maintainKey: other.maintainKey,
  );
}