copyWith method

ShimmerProgressBar copyWith({
  1. double? value,
  2. double? height,
  3. Color? valueColor,
  4. Color? backgroundColor,
  5. bool? showShimmer,
  6. VoidCallback? onProgressComplete,
})

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,
  );
}