copyWith method

ProgressBarModel copyWith({
  1. int? current,
  2. int? total,
  3. int? width,
  4. String? fillChar,
  5. String? emptyChar,
  6. bool? showPercentage,
  7. bool? showCount,
  8. RenderConfig? renderConfig,
})

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