loadAllModels static method

Future<List<AIModel>> loadAllModels()

Implementation

static Future<List<AIModel>> loadAllModels() async {
  final data = await ManagerAIDatabase.loadAll();
  final models = data.map(AiProviderRegistry.fromMap).toList()
    ..sort((a, b) => a.rotationOrder.compareTo(b.rotationOrder));
  return models;
}