notificationStream property

Stream<NotificationEvent>? notificationStream

Implementation

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