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