copyWith method
Implementation
ToggleSwitchThemeData copyWith(ToggleSwitchThemeData? style) {
return ToggleSwitchThemeData(
margin: style?.margin ?? margin,
padding: style?.padding ?? padding,
cursor: style?.cursor ?? cursor,
animationCurve: style?.animationCurve ?? animationCurve,
animationDuration: style?.animationDuration ?? animationDuration,
checkedThumbDecoration:
style?.checkedThumbDecoration ?? checkedThumbDecoration,
uncheckedThumbDecoration:
style?.uncheckedThumbDecoration ?? uncheckedThumbDecoration,
checkedDecoration: style?.checkedDecoration ?? checkedDecoration,
uncheckedDecoration: style?.uncheckedDecoration ?? uncheckedDecoration,
);
}