postEvent method

  1. @protected
void postEvent(
  1. String eventKind,
  2. Map<Object, Object?> eventData,
  3. {String stream = 'Extension'}
)

All events dispatched by a WidgetInspectorService use this method instead of calling developer.postEvent directly.

This allows tests for WidgetInspectorService to track which events were dispatched by overriding this method.

Implementation

@protected
void postEvent(
  String eventKind,
  Map<Object, Object?> eventData, {
  String stream = 'Extension',
}) {
  developer.postEvent(eventKind, eventData, stream: stream);
}