collectReferences method
Implementation
@override
Future<List<ModelReference>> collectReferences({String? appId}) async {
List<ModelReference> referencesCollector = [];
if (feed != null) {
referencesCollector
.add(ModelReference(FeedModel.packageName, FeedModel.id, feed!));
}
if (feed != null) {
referencesCollector.addAll(await feed!.collectReferences(appId: appId));
}
if (backgroundOverridePosts != null) {
referencesCollector.addAll(
await backgroundOverridePosts!.collectReferences(appId: appId));
}
if (backgroundOverrideProfile != null) {
referencesCollector.addAll(
await backgroundOverrideProfile!.collectReferences(appId: appId));
}
if (conditions != null) {
referencesCollector
.addAll(await conditions!.collectReferences(appId: appId));
}
return referencesCollector;
}