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