Skip to content

postEvent

void postEvent(
  String eventKind,
  Map<dynamic, dynamic> eventData, {
  String stream = 'Extension',
})

Post an event of eventKind with payload of eventData to the "Extension" event stream.

If extensionStreamHasListener is false, this method is a no-op. Override stream to set the destination stream that the event should be posted to. The stream may not start with an underscore or be a core VM Service stream.