copyWith method
VSwitchStyle
copyWith({
- Color? switchColor,
- dynamic tagColor,
- dynamic tagBorderColor,
- dynamic borderColor,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
VSwitchStyle copyWith({
Color? switchColor,
tagColor,
tagBorderColor,
borderColor,
}) =>
VSwitchStyle(
switchColor: switchColor ?? this.switchColor,
tagColor: tagColor ?? this.tagColor,
tagBorderColor: tagBorderColor ?? this.tagBorderColor,
borderColor: borderColor ?? this.borderColor,
);