copyWith method

  1. @override
VProgressStyle copyWith({
  1. Color? backgroundColor,
  2. Color? color,
  3. Color? successColor,
  4. TextStyle? circularLabelTextStyle,
  5. double? linearRadius,
  6. double? circularSize,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
VProgressStyle copyWith({
  Color? backgroundColor,
  Color? color,
  Color? successColor,
  TextStyle? circularLabelTextStyle,
  double? linearRadius,
  double? circularSize,
}) =>
    VProgressStyle(
      backgroundColor: backgroundColor ?? this.backgroundColor,
      color: color ?? this.color,
      circularLabelTextStyle:
          circularLabelTextStyle ?? this.circularLabelTextStyle,
      linearRadius: linearRadius ?? this.linearRadius,
      circularSize: circularSize ?? this.circularSize,
      successColor: successColor ?? this.successColor,
    );