start method
void
start(
- void task()
Starts the periodic execution of a task based on the cron expression.
task
is a function with no parameters that encapsulates
the invocation of the actual task function with its parameters.
Implementation
void start(void Function() task) {
cron.schedule(Schedule.parse(cronExpression), task);
}