widgetEvents property
Implementation
@override
Stream<CelloWidgetEvent> get widgetEvents {
_widgetEventStream ??= widgetEventChannel
.receiveBroadcastStream()
.map<Map<dynamic, dynamic>?>((event) => event is Map ? event : null)
.map(CelloWidgetEvent.fromMap)
.where((event) => event != null)
.cast<CelloWidgetEvent>()
.handleError((error) {
throw _wrapError(error);
})
.asBroadcastStream();
return _widgetEventStream!;
}