dispatchEvent static method

Future<void> dispatchEvent(
  1. Event event
)

Called by the extension public API to dispatch an event for other extensions or the internal SDK to consume. Any events dispatched by this call will not be processed until after start has been called.

Implementation

static Future<void> dispatchEvent(Event event) =>
    _channel.invokeMethod<void>('dispatchEvent', event.data);