# postEvent function

void postEvent (String eventKind, Map eventData)

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

## Implementation

    void postEvent(String eventKind, Map eventData) {
      ArgumentError.checkNotNull(eventKind, 'eventKind');
      ArgumentError.checkNotNull(eventData, 'eventData');
      String eventDataAsString = json.encode(eventData);
      _postEvent(eventKind, eventDataAsString);
    }