copyWith method
Creates a copy of this progress bar with updated values
Implementation
ShimmerProgressBar copyWith({
double? value,
double? height,
Color? valueColor,
Color? backgroundColor,
bool? showShimmer,
VoidCallback? onProgressComplete,
}) {
return ShimmerProgressBar(
value: value ?? this.value,
height: height ?? this.height,
borderRadius: borderRadius,
shimmerWidth: shimmerWidth,
shimmerDuration: shimmerDuration,
animationDuration: animationDuration,
valueColor: valueColor ?? this.valueColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
percentageFontColor: percentageFontColor,
shimmerColor: shimmerColor,
showShimmer: showShimmer ?? this.showShimmer,
alignPercentageToTip: alignPercentageToTip,
showPercentage: showPercentage,
percentTextStyle: percentTextStyle,
includeSemantics: includeSemantics,
semanticsLabel: semanticsLabel,
onProgressComplete: onProgressComplete ?? this.onProgressComplete,
minWidthForPercentage: minWidthForPercentage,
percentageBuilder: percentageBuilder,
respectReducedMotion: respectReducedMotion,
);
}