getSchedule method
An ordered list of timestamp generated by this trigger for a
given period. This is mainly used for persistently scheduling
a list of AppTasks from triggers that implement the Schedulable
interface.
Implementation
@override
List<DateTime> getSchedule(DateTime from, DateTime to, [int? max]) {
if (deployment?.deployed == null) return [];
if (configuration?.elapsedTime == null) return [];
final dd = deployment!.deployed!.add(configuration!.elapsedTime!);
return (dd.isAfter(from) && dd.isBefore(to)) ? [dd] : [];
}