policyPresentationRepository method

  1. @override
PolicyPresentationRepository? policyPresentationRepository(
  1. String? appId
)
override

Implementation

@override
PolicyPresentationRepository? policyPresentationRepository(String? appId) {
  if ((appId != null) && (_policyPresentationRepository[appId] == null)) {
    _policyPresentationRepository[appId] = PolicyPresentationCache(
        PolicyPresentationFirestore(
            () => appRepository()!
                .getSubCollection(appId, 'policypresentation'),
            appId));
  }
  return _policyPresentationRepository[appId];
}