postEvent method Null safety

  1. @protected
void postEvent(
  1. String eventKind,
  2. Map<Object, Object?> eventData

All events dispatched by a WidgetInspectorService use this method instead of calling developer.postEvent directly so that tests for WidgetInspectorService can track which events were dispatched by overriding this method.


void postEvent(String eventKind, Map<Object, Object?> eventData) {
  developer.postEvent(eventKind, eventData);