onResume method
Callback when this executor is resumed. Returns true if successfully resumed, false otherwise.
Implementation
@override
Future<bool> onResume() async {
if (stream == null) {
warning(
"Trying to resume the stream probe '$runtimeType' which does not provide a Datum stream. "
'Have you initialized this probe correctly?');
return false;
} else {
subscription = stream!.listen(onData, onError: onError, onDone: onDone);
}
return true;
}