onResume method
Callback when this executor is resumed. Returns true if successfully resumed, false otherwise.
Implementation
@override
Future<bool> onResume() async {
// Fire immediately on resume (matching getSchedule, which includes the
// start time), then once per period.
onTrigger();
timer = Timer.periodic(configuration!.period, (_) => onTrigger());
return true;
}