onEventReceived abstract method

void onEventReceived(
  1. DevToolsExtensionEvent event, {
  2. void onUnknownEvent()?,
})

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,
});