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 (shop != null) {
    referencesCollector
        .add(ModelReference(ShopModel.packageName, ShopModel.id, shop!));
  }
  if (shop != null) {
    referencesCollector.addAll(await shop!.collectReferences(appId: appId));
  }
  if (itemImageBackground != null) {
    referencesCollector
        .addAll(await itemImageBackground!.collectReferences(appId: appId));
  }
  if (itemDetailBackground != null) {
    referencesCollector
        .addAll(await itemDetailBackground!.collectReferences(appId: appId));
  }
  if (checkoutAction != null) {
    referencesCollector
        .addAll(await checkoutAction!.collectReferences(appId: appId));
  }
  if (backToShopAction != null) {
    referencesCollector
        .addAll(await backToShopAction!.collectReferences(appId: appId));
  }
  if (openProductAction != null) {
    referencesCollector
        .addAll(await openProductAction!.collectReferences(appId: appId));
  }
  if (conditions != null) {
    referencesCollector
        .addAll(await conditions!.collectReferences(appId: appId));
  }
  return referencesCollector;
}