# dynamicWidgetRepository method Null safety

1. @override

DynamicWidgetRepository? dynamicWidgetRepository(

1. String? appId

)
override

## Implementation

    @override
    DynamicWidgetRepository? dynamicWidgetRepository(String? appId) {
      if ((appId != null) && (_dynamicWidgetRepository[appId] == null)) {
        _dynamicWidgetRepository[appId] = DynamicWidgetCache(
            DynamicWidgetFirestore(
                () => appRepository()!.getSubCollection(appId, 'dynamicwidget'),
                appId));
      }
      return _dynamicWidgetRepository[appId];
    }