notificationStream property
Stream<NotificationEvent>
notificationStream
Implementation
Stream<NotificationEvent> get notificationStream {
if (Platform.isAndroid) {
_notificationStream = _notificationEventChannel
.receiveBroadcastStream()
.map((event) => _notificationEvent(event));
return _notificationStream;
}
throw NotificationException(
'Notification API exclusively available on Android!');
}