onResume method
Callback when this executor is resumed. Returns true if successfully resumed, false otherwise.
Implementation
@override
Future<bool> onResume() async {
if (configuration?.duration != null) {
Timer(configuration!.duration!, () => pause());
}
return await super.onResume();
}