collectReferences method
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;
}