copyWith method

UfbtProgress copyWith({
  1. UfbtProgressState? state,
  2. int? current,
  3. int? total,
  4. String? message,
})

Implementation

UfbtProgress copyWith({
  UfbtProgressState? state,
  int? current,
  int? total,
  String? message,
}) {
  return UfbtProgress(
    id: id,
    title: title,
    state: state ?? this.state,
    current: current ?? this.current,
    total: total ?? this.total,
    message: message ?? this.message,
  );
}