onNotificationOpened property

Stream<NotificationPayload> get onNotificationOpened

Stream of opened notifications from both Firebase and Local sources.

Implementation

Stream<NotificationPayload> get onNotificationOpened {
  return StreamGroup.merge(<Stream<NotificationPayload>>[
    _firebaseRepository.onNotificationOpened.map(
      (NotificationPayload payload) => payload.copyWith(
        data: <String, dynamic>{...payload.data, 'source': 'firebase'},
      ),
    ),
    _localRepository.onNotificationOpened.map(
      (NotificationPayload payload) => payload.copyWith(
        data: <String, dynamic>{...payload.data, 'source': 'local'},
      ),
    ),
  ]);
}