scheduledTimer function

TimedGenerator scheduledTimer(
  1. Iterable<DateTime> schedule
)

Implementation

TimedGenerator scheduledTimer(Iterable<DateTime> schedule) {
  List<DateTime> sortedSpecific = List.from(schedule.toList());
  sortedSpecific.sort((a, b) => a.compareTo(b));

  return fromIterable(sortedSpecific);
}