copyWith method
VSwitchStyle
copyWith({
- Color? switchColor,
- dynamic tagColor,
- dynamic tagBorderColor,
- dynamic borderColor,
- dynamic trackDisabledOff,
- dynamic trackDisabledOn,
- dynamic thumbDisabled,
- dynamic borderDisabledOff,
- dynamic borderDisabledOn,
- dynamic thumbBorderDisabled,
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,
trackDisabledOff,
trackDisabledOn,
thumbDisabled,
borderDisabledOff,
borderDisabledOn,
thumbBorderDisabled,
}) =>
VSwitchStyle(
switchColor: switchColor ?? this.switchColor,
tagColor: tagColor ?? this.tagColor,
tagBorderColor: tagBorderColor ?? this.tagBorderColor,
borderColor: borderColor ?? this.borderColor,
trackDisabledOff: trackDisabledOff ?? this.trackDisabledOff,
trackDisabledOn: trackDisabledOn ?? this.trackDisabledOn,
thumbDisabled: thumbDisabled ?? this.thumbDisabled,
borderDisabledOff: borderDisabledOff ?? this.borderDisabledOff,
borderDisabledOn: borderDisabledOn ?? this.borderDisabledOn,
thumbBorderDisabled: thumbBorderDisabled ?? this.thumbBorderDisabled,
);