LxWorkerStat constructor

const LxWorkerStat({
  1. int runCount = 0,
  2. Duration lastDuration = Duration.zero,
  3. Duration totalDuration = Duration.zero,
  4. DateTime? lastRun,
  5. Object? error,
  6. bool isAsync = false,
  7. bool isProcessing = false,
})

Creates a statistics snapshot.

Implementation

const LxWorkerStat({
  this.runCount = 0,
  this.lastDuration = Duration.zero,
  this.totalDuration = Duration.zero,
  this.lastRun,
  this.error,
  this.isAsync = false,
  this.isProcessing = false,
});