copyWith method
WorkStatus
copyWith(
{ - WorkPhase? phase,
- String? jobId,
- String? message,
- Object? error,
- String? errorStack,
- double? completed,
- double? total,
- double? percentComplete,
- Map<String, dynamic>? more,
})
Implementation
WorkStatus copyWith({
WorkPhase? phase,
String? jobId,
String? message,
Object? error,
String? errorStack,
double? completed,
double? total,
double? percentComplete,
Map<String, dynamic>? more,
}) {
return WorkStatus(
jobId: jobId ?? this.jobId,
phase: phase ?? this.phase,
message: message ?? this.message,
error: error?.toString() ?? this.error,
errorStack: errorStack ?? this.errorStack,
completed: completed ?? this.completed,
total: total ?? this.total,
percentComplete: percentComplete ?? this.percentComplete,
more: more ?? this.more,
);
}