chatDashboardRepository method

  1. @override
ChatDashboardRepository? chatDashboardRepository(
  1. String? appId
)
override

Implementation

@override
ChatDashboardRepository? chatDashboardRepository(String? appId) {
  if ((appId != null) && (_chatDashboardRepository[appId] == null)) {
    _chatDashboardRepository[appId] = ChatDashboardCache(
        ChatDashboardFirestore(
            () => appRepository()!.getSubCollection(appId, 'chatdashboard'),
            appId));
  }
  return _chatDashboardRepository[appId];
}