copyWith method

FlutstrapProgress copyWith({
  1. double? value,
  2. double? minValue,
  3. double? maxValue,
  4. FSProgressVariant? variant,
  5. FSProgressSize? size,
  6. bool? animated,
  7. bool? striped,
  8. String? label,
  9. Widget? customLabel,
  10. Color? backgroundColor,
  11. Color? progressColor,
  12. double? height,
  13. double? fixedWidth,
  14. bool? expandToFill,
  15. BorderRadiusGeometry? borderRadius,
  16. Duration? animationDuration,
  17. Curve? animationCurve,
  18. bool validator(
    1. double value,
    2. double minValue,
    3. double maxValue
    )?,
})

Implementation

FlutstrapProgress copyWith({
  double? value,
  double? minValue,
  double? maxValue,
  FSProgressVariant? variant,
  FSProgressSize? size,
  bool? animated,
  bool? striped,
  String? label,
  Widget? customLabel,
  Color? backgroundColor,
  Color? progressColor,
  double? height,
  double? fixedWidth,
  bool? expandToFill,
  BorderRadiusGeometry? borderRadius,
  Duration? animationDuration,
  Curve? animationCurve,
  bool Function(double value, double minValue, double maxValue)? validator,
}) {
  return FlutstrapProgress(
    key: key,
    value: value ?? this.value,
    minValue: minValue ?? this.minValue,
    maxValue: maxValue ?? this.maxValue,
    variant: variant ?? this.variant,
    size: size ?? this.size,
    animated: animated ?? this.animated,
    striped: striped ?? this.striped,
    label: label ?? this.label,
    customLabel: customLabel ?? this.customLabel,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    progressColor: progressColor ?? this.progressColor,
    height: height ?? this.height,
    fixedWidth: fixedWidth ?? this.fixedWidth,
    expandToFill: expandToFill ?? this.expandToFill,
    borderRadius: borderRadius ?? this.borderRadius,
    animationDuration: animationDuration ?? this.animationDuration,
    animationCurve: animationCurve ?? this.animationCurve,
    validator: validator ?? this.validator,
  );
}