# collectReferences method Null safety

1. @override

dynamic collectReferences(

1. {String? appId}

)
override

## Implementation

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