merge method

Implementation

ToggleSwitchThemeData merge(ToggleSwitchThemeData? style) {
  return ToggleSwitchThemeData(
    margin: style?.margin ?? margin,
    padding: style?.padding ?? padding,
    animationCurve: style?.animationCurve ?? animationCurve,
    animationDuration: style?.animationDuration ?? animationDuration,
    checkedKnobDecoration:
        style?.checkedKnobDecoration ?? checkedKnobDecoration,
    uncheckedKnobDecoration:
        style?.uncheckedKnobDecoration ?? uncheckedKnobDecoration,
    checkedDecoration: style?.checkedDecoration ?? checkedDecoration,
    uncheckedDecoration: style?.uncheckedDecoration ?? uncheckedDecoration,
    foregroundColor: style?.foregroundColor ?? foregroundColor,
  );
}