TaskDetails constructor

const TaskDetails({
  1. required LxStatus status,
  2. String? executionId,
  3. String ownerPath = '?',
  4. LevitTaskPhase phase = LevitTaskPhase.completed,
  5. LevitTaskMetadata metadata = LevitTaskMetadata.none,
  6. TaskPriority priority = TaskPriority.normal,
  7. int attempt = 0,
  8. LevitTaskOutcome? outcome,
  9. double weight = 1.0,
  10. double progress = 0.0,
  11. bool started = false,
  12. DateTime? queuedAt,
  13. DateTime? startedAt,
  14. DateTime? finishedAt,
  15. Duration? queueDuration,
  16. Duration? runDuration,
})

Creates task details.

Implementation

const TaskDetails({
  required this.status,
  this.executionId,
  this.ownerPath = '?',
  this.phase = LevitTaskPhase.completed,
  this.metadata = LevitTaskMetadata.none,
  this.priority = TaskPriority.normal,
  this.attempt = 0,
  this.outcome,
  this.weight = 1.0,
  this.progress = 0.0,
  this.started = false,
  this.queuedAt,
  this.startedAt,
  this.finishedAt,
  this.queueDuration,
  this.runDuration,
});