collectModels method

List<Model> collectModels(
  1. List<String> names
)

Implementation

List<Model> collectModels(List<String> names) {
  final models = <Model>[];
  for (final element in names) {
    models.addAll(UniApiAnalyzer.allModels()
            ?.where((model) => model.name == element)
            .toList() ??
        []);
  }

  return models;
}