onResume method
Called by resume. Returns true if successfully resumed.
If false, the executor moves to ExecutorState.PausedButShouldBeResumed.
Implementation
@override
Future<bool> onResume() async {
Duration delay = configuration!.firstOccurrence.difference(DateTime.now());
if (configuration!.end == null || configuration!.end!.isAfter(DateTime.now())) {
timer = Timer(delay, () async => onTrigger());
}
return true;
}