copyWith method

  1. @override
VSwitchStyle copyWith({
  1. Color? switchColor,
  2. dynamic tagColor,
  3. dynamic tagBorderColor,
  4. 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,
    );