copyWith method Null safety
Implementation
JobInfo copyWith({
String? label,
String? description,
JobState? state,
int? retryCount,
int? maxRetry,
}) {
return JobInfo(
label: label ?? this.label,
description: description ?? this.description,
state: state ?? this.state,
retryCount: retryCount ?? this.retryCount,
maxRetry: maxRetry ?? this.maxRetry,
);
}