dispatchEventWithResponseCallback static method
You should use this method when the Event being passed is a request and you expect an event in response. Any events dispatched by this call will not be processed until after start
has been called.
Implementation
static Future<ACPExtensionEvent> dispatchEventWithResponseCallback(
ACPExtensionEvent event,
) =>
_channel
.invokeMethod<Map<dynamic, dynamic>>(
'dispatchEventWithResponseCallback', event.data)
.then((value) => ACPExtensionEvent(value!));