notificationRepository method

  1. @override
NotificationRepository? notificationRepository(
  1. String? appId
)
override

Implementation

@override
NotificationRepository? notificationRepository(String? appId) {
  if ((appId != null) && (_notificationRepository[appId] == null)) {
    _notificationRepository[appId] = NotificationCache(NotificationFirestore(
        () => appRepository()!.getSubCollection(appId, 'notification'),
        appId));
  }
  return _notificationRepository[appId];
}