JobScheduler.addJob

Adds a simple job that executes the given function according to the given schedule.

  1. void addJob(ScheduledJob job)
  2. void addJob(Job job, JobSchedule schedule)
  3. void addJob(void function() fn, JobSchedule schedule)
    interface JobScheduler
    final
    void
    addJob
    (
    void function
    ()
    fn
    ,)

Parameters

fn void function
()

A function to execute.

schedule JobSchedule

The schedule defining when to execute the function.

Meta