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