collectReferences method

  1. @override
Future<List<ModelReference>> collectReferences({
  1. String? appId,
})
override

Implementation

@override
Future<List<ModelReference>> collectReferences({String? appId}) async {
  List<ModelReference> referencesCollector = [];
  if (sections != null) {
    for (var item in sections!) {
      referencesCollector.addAll(await item.collectReferences(appId: appId));
    }
  }
  if (conditions != null) {
    referencesCollector
        .addAll(await conditions!.collectReferences(appId: appId));
  }
  return referencesCollector;
}