onResume method
Callback when this executor is resumed. Returns true if successfully resumed, false otherwise.
Implementation
@override
Future<bool> onResume() async {
if (!configuration!.hasBeenTriggered) {
configuration!.triggerTimestamp = DateTime.now();
await super.onResume();
} else {
warning(
"$runtimeType - one time trigger already occurred at: ${configuration?.triggerTimestamp}. "
'Will not trigger now.');
}
return true;
}