copyWith method
Implementation
ProgressBarModel copyWith({
int? current,
int? total,
int? width,
String? fillChar,
String? emptyChar,
bool? showPercentage,
bool? showCount,
RenderConfig? renderConfig,
}) {
return ProgressBarModel(
id: id,
current: current ?? this.current,
total: total ?? this.total,
width: width ?? this.width,
fillChar: fillChar ?? this.fillChar,
emptyChar: emptyChar ?? this.emptyChar,
showPercentage: showPercentage ?? this.showPercentage,
showCount: showCount ?? this.showCount,
renderConfig: renderConfig ?? this.renderConfig,
);
}