collectReferences method
Implementation
@override
Future<List<ModelReference>> collectReferences({String? appId}) async {
List<ModelReference> referencesCollector = [];
if (gridView != null) {
referencesCollector.add(ModelReference(
GridViewModel.packageName, GridViewModel.id, gridView!));
}
if (bodyComponents != null) {
for (var item in bodyComponents!) {
referencesCollector.addAll(await item.collectReferences(appId: appId));
}
}
if (backgroundOverride != null) {
referencesCollector
.addAll(await backgroundOverride!.collectReferences(appId: appId));
}
if (gridView != null) {
referencesCollector
.addAll(await gridView!.collectReferences(appId: appId));
}
if (conditions != null) {
referencesCollector
.addAll(await conditions!.collectReferences(appId: appId));
}
return referencesCollector;
}