copyWith method

  1. @override
VSwitchStyle copyWith({
  1. Color? switchColor,
  2. dynamic tagColor,
  3. dynamic tagBorderColor,
  4. dynamic borderColor,
  5. dynamic trackDisabledOff,
  6. dynamic trackDisabledOn,
  7. dynamic thumbDisabled,
  8. dynamic borderDisabledOff,
  9. dynamic borderDisabledOn,
  10. 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,
    );