collectReferences method

  1. @override
Future<List<ModelReference>> collectReferences({
  1. String? appId,
})
override

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 (backgroundOverride != null) {
    referencesCollector
        .addAll(await backgroundOverride!.collectReferences(appId: appId));
  }
  if (conditions != null) {
    referencesCollector
        .addAll(await conditions!.collectReferences(appId: appId));
  }
  return referencesCollector;
}