ScheduledTask constructor

ScheduledTask({
  1. required String name,
  2. required Duration interval,
  3. required ScheduledJob job,
  4. String timeZone = 'UTC',
  5. bool retryOnFail = false,
  6. bool runOnce = false,
  7. int maxRetries = 3,
})

Creates a new scheduled task

Implementation

ScheduledTask({
  required this.name,
  required this.interval,
  required this.job,
  this.timeZone = 'UTC',
  this.retryOnFail = false,
  this.runOnce = false,
  this.maxRetries = 3,
}) : _state = _TaskState();