onMessage method
listen for any message from this worker
Implementation
StreamSubscription onMessage(
void Function(R)? onData, {
Function? onError,
void Function()? onDone,
bool? cancelOnError,
}) =>
_controller.stream.listen(
onData,
onError: onError,
onDone: onDone,
cancelOnError: cancelOnError,
);