collectReferences method
Implementation
@override
Future<List<ModelReference>> collectReferences({String? appId}) async {
List<ModelReference> referencesCollector = [];
if (profileBackground != null) {
referencesCollector.add(ModelReference(MemberMediumModel.packageName,
MemberMediumModel.id, profileBackground!));
}
if (profileBackground != null) {
referencesCollector
.addAll(await profileBackground!.collectReferences(appId: appId));
}
if (memberMedia != null) {
for (var item in memberMedia!) {
referencesCollector.addAll(await item.collectReferences(appId: appId));
}
}
return referencesCollector;
}