widgetEventCallback property

  1. @JsonKey.new(includeToJson: false, includeFromJson: false)
void Function(Map<String, dynamic>? event, Exception? error)? widgetEventCallback
final

Optional handler that receives widget events posted from the widget webview via window.WidgetEvent.postEvent as a {type, metadata} map; receives (null, error) when the event payload can't be parsed.

Implementation

@JsonKey(includeToJson: false, includeFromJson: false)
final void Function(Map<String, dynamic>? event, Exception? error)? widgetEventCallback;