# collectReferences method Null safety

1. @override

dynamic collectReferences(

1. {String? appId}

)
override

## Implementation

    @override
    Future<List<ModelReference>> collectReferences({
      String? appId,
    }) async {
      var referencesCollector = <ModelReference>[];
      if (menuDef != null) {
        referencesCollector.add(
            ModelReference(MenuDefModel.packageName, MenuDefModel.id, menuDef!));
      }
      return referencesCollector;
    }