copyWith method

ProgressProps copyWith({
  1. double? value,
  2. ProgressSize? size,
  3. ProgressVariant? variant,
  4. bool? indeterminate,
  5. bool? showValue,
  6. String? trackColor,
  7. String? indicatorColor,
})

Implementation

ProgressProps copyWith({
  double? value,
  ProgressSize? size,
  ProgressVariant? variant,
  bool? indeterminate,
  bool? showValue,
  String? trackColor,
  String? indicatorColor,
}) {
  return ProgressProps(
    value: value ?? this.value,
    size: size ?? this.size,
    variant: variant ?? this.variant,
    indeterminate: indeterminate ?? this.indeterminate,
    showValue: showValue ?? this.showValue,
    trackColor: trackColor ?? this.trackColor,
    indicatorColor: indicatorColor ?? this.indicatorColor,
  );
}