notificationDashboardRepository method

  1. @override
NotificationDashboardRepository? notificationDashboardRepository(
  1. String? appId
)
override

Implementation

@override
NotificationDashboardRepository? notificationDashboardRepository(
    String? appId) {
  if ((appId != null) && (_notificationDashboardRepository[appId] == null)) {
    _notificationDashboardRepository[appId] = NotificationDashboardCache(
        NotificationDashboardFirestore(
            () => appRepository()!
                .getSubCollection(appId, 'notificationdashboard'),
            appId));
  }
  return _notificationDashboardRepository[appId];
}