copyWith method

JobInfo copyWith(
  1. {String? label,
  2. String? description,
  3. JobState? state,
  4. int? retryCount,
  5. int? maxRetry}
)

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