onEventReceived abstract method
Handles events sent by the extension.
If an unknown event is received, this handler should call onUnknownEvent
if non-null.
Implementation
void onEventReceived(
DevToolsExtensionEvent event, {
void Function()? onUnknownEvent,
});