getSchedule method
Returns the times this trigger fires between from and to.
Ordered by time, except for RandomRecurrentTriggerExecutor.
max limits the number of iterations; its default depends on the
implementation.
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!).toLocal();
return (dd.isAfter(from) && dd.isBefore(to)) ? [dd] : [];
}