collectReferences method
Implementation
@override
Future<List<ModelReference>> collectReferences({String? appId}) async {
List<ModelReference> referencesCollector = [];
if (policy != null) {
referencesCollector.add(ModelReference(
PlatformMediumModel.packageName, PlatformMediumModel.id, policy!));
}
if (policy != null) {
referencesCollector.addAll(await policy!.collectReferences(appId: appId));
}
if (conditions != null) {
referencesCollector
.addAll(await conditions!.collectReferences(appId: appId));
}
return referencesCollector;
}