copyWith method

PodProgressBarConfig copyWith({
  1. Color? playingBarColor,
  2. Color? bufferedBarColor,
  3. Color? circleHandlerColor,
  4. bool? alwaysVisibleCircleHandler,
  5. Color? backgroundColor,
  6. GetProgressBarPlayedPaint? getPlayedPaint,
  7. GetProgressBarBufferedPaint? getBufferedPaint,
  8. GetProgressBarHandlePaint? getCircleHandlerPaint,
  9. GetProgressBarBackgroundPaint? getBackgroundPaint,
  10. double? height,
  11. EdgeInsetsGeometry? padding,
  12. double? circleHandlerRadius,
  13. double? curveRadius,
})

Implementation

PodProgressBarConfig copyWith({
  Color? playingBarColor,
  Color? bufferedBarColor,
  Color? circleHandlerColor,
  bool? alwaysVisibleCircleHandler,
  Color? backgroundColor,
  GetProgressBarPlayedPaint? getPlayedPaint,
  GetProgressBarBufferedPaint? getBufferedPaint,
  GetProgressBarHandlePaint? getCircleHandlerPaint,
  GetProgressBarBackgroundPaint? getBackgroundPaint,
  double? height,
  EdgeInsetsGeometry? padding,
  double? circleHandlerRadius,
  double? curveRadius,
}) {
  return PodProgressBarConfig(
    playingBarColor: playingBarColor ?? this.playingBarColor,
    bufferedBarColor: bufferedBarColor ?? this.bufferedBarColor,
    circleHandlerColor: circleHandlerColor ?? this.circleHandlerColor,
    alwaysVisibleCircleHandler:
        alwaysVisibleCircleHandler ?? this.alwaysVisibleCircleHandler,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    getPlayedPaint: getPlayedPaint ?? this.getPlayedPaint,
    getBufferedPaint: getBufferedPaint ?? this.getBufferedPaint,
    getCircleHandlerPaint:
        getCircleHandlerPaint ?? this.getCircleHandlerPaint,
    getBackgroundPaint: getBackgroundPaint ?? this.getBackgroundPaint,
    height: height ?? this.height,
    padding: padding ?? this.padding,
    circleHandlerRadius: circleHandlerRadius ?? this.circleHandlerRadius,
    curveRadius: curveRadius ?? this.curveRadius,
  );
}