merge method

Merges the theme data ToggleSwitchThemeData.

Implementation

ToggleSwitchThemeData merge(ToggleSwitchThemeData? other) {
  if (other == null) {
    return this;
  }
  return copyWith(
    disabledColor: other.disabledColor,
    activeColor: other.activeColor,
    activeHoverColor: other.activeHoverColor,
    inactiveColor: other.inactiveColor,
    inactiveHoverColor: other.inactiveHoverColor,
    foreground: other.foreground,
  );
}