widgetEventCallback method
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;
}