ScheduledTask constructor
ScheduledTask({})
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();