copyWith method
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 validator()?,
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,
);
}