collectReferences method
Implementation
@override
Future<List<ModelReference>> collectReferences({String? appId}) async {
List<ModelReference> referencesCollector = [];
if (image != null) {
referencesCollector.add(ModelReference(
MemberMediumModel.packageName, MemberMediumModel.id, image!));
}
if (iconMenu != null) {
referencesCollector.add(
ModelReference(MenuDefModel.packageName, MenuDefModel.id, iconMenu!));
}
if (icon != null) {
referencesCollector.addAll(await icon!.collectReferences(appId: appId));
}
if (image != null) {
referencesCollector.addAll(await image!.collectReferences(appId: appId));
}
if (iconMenu != null) {
referencesCollector
.addAll(await iconMenu!.collectReferences(appId: appId));
}
if (backgroundOverride != null) {
referencesCollector
.addAll(await backgroundOverride!.collectReferences(appId: appId));
}
if (iconColorOverride != null) {
referencesCollector
.addAll(await iconColorOverride!.collectReferences(appId: appId));
}
if (selectedIconColorOverride != null) {
referencesCollector.addAll(
await selectedIconColorOverride!.collectReferences(appId: appId));
}
if (menuBackgroundColorOverride != null) {
referencesCollector.addAll(
await menuBackgroundColorOverride!.collectReferences(appId: appId));
}
return referencesCollector;
}