start method

void start(
  1. 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);
}