BackgroundJob constructor

BackgroundJob({
  1. required int id,
  2. required String jobKey,
  3. Map<String, dynamic>? payload,
  4. required BackgroundJobStatus status,
  5. required int attempts,
  6. required int maxAttempts,
  7. DateTime? lastAttemptAt,
  8. String? lastError,
  9. required int priority,
  10. required DateTime createdAt,
  11. required DateTime updatedAt,
})

Implementation

BackgroundJob({
  required this.id,
  required this.jobKey,
  this.payload,
  required this.status,
  required this.attempts,
  required this.maxAttempts,
  this.lastAttemptAt,
  this.lastError,
  required this.priority,
  required this.createdAt,
  required this.updatedAt,
});