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 (product != null) {
    referencesCollector.add(
        ModelReference(ProductModel.packageName, ProductModel.id, product!));
  }
  if (product != null) {
    referencesCollector
        .addAll(await product!.collectReferences(appId: appId));
  }
  return referencesCollector;
}