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