scheduleOnce static method

dynamic scheduleOnce(
  1. String name,
  2. dynamic callback()
)

Schedule something to happen once

Implementation

static scheduleOnce(String name, Function() callback) async {
  await NyScheduler.taskOnce(name, callback);
}