copyWith method
Makes a copy of ToggleSwitchThemeData overwriting selected fields.
Implementation
ToggleSwitchThemeData copyWith({
Color? disabledColor,
Color? activeColor,
Color? activeHoverColor,
Color? inactiveColor,
Color? inactiveHoverColor,
Color? foreground,
}) {
return ToggleSwitchThemeData(
disabledColor: disabledColor ?? this.disabledColor,
activeColor: activeColor ?? this.activeColor,
activeHoverColor: activeHoverColor ?? this.activeHoverColor,
inactiveColor: inactiveColor ?? this.inactiveColor,
inactiveHoverColor: inactiveHoverColor ?? this.inactiveHoverColor,
foreground: foreground ?? this.foreground,
);
}