widgetEventCallback method

ShowProfileRequestBuilder widgetEventCallback(
  1. void widgetEventCallback(
    1. Map<String, dynamic>? event,
    2. Exception? error
    )?
)

Register a listener that receives widget events (e.g. game completion) as a {type, metadata} map, posted from the widget via window.WidgetEvent.postEvent.

Implementation

ShowProfileRequestBuilder widgetEventCallback(void Function(Map<String, dynamic>? event, Exception? error)? widgetEventCallback) {
  _widgetEventCallback = widgetEventCallback;
  return this;
}