BackgroundJob class

Constructors

BackgroundJob({required int id, required String jobKey, Map<String, dynamic>? payload, required BackgroundJobStatus status, required int attempts, required int maxAttempts, DateTime? lastAttemptAt, String? lastError, required int priority, required DateTime createdAt, required DateTime updatedAt})
BackgroundJob.fromMap(Map<String, dynamic> map)
factory

Properties

attempts → int
final
createdAt → DateTime
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
final
jobKey → String
final
lastAttemptAt → DateTime?
final
lastError → String?
final
maxAttempts → int
final
payload → Map<String, dynamic>?
final
priority → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → BackgroundJobStatus
final
updatedAt → DateTime
final

Methods

copyWith({int? id, String? jobKey, Map<String, dynamic>? payload, BackgroundJobStatus? status, int? attempts, int? maxAttempts, DateTime? lastAttemptAt, String? lastError, int? priority, DateTime? createdAt, DateTime? updatedAt}) → BackgroundJob
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMapForDbUpdate() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited