scheduleTask method
Run task
.
Implementation
void scheduleTask(final RandomTask task) {
timers[task] = Timer(task.getDuration(), () {
timers.remove(task);
if (!_paused) {
task.onTick();
}
scheduleTask(task);
});
}
Run task
.
void scheduleTask(final RandomTask task) {
timers[task] = Timer(task.getDuration(), () {
timers.remove(task);
if (!_paused) {
task.onTick();
}
scheduleTask(task);
});
}