getDefaultModel static method
Implementation
static Future<AIModel?> getDefaultModel() async {
List<AIModel> models = await loadAllModels();
for (var model in models) {
if (model.defaultModel == true) {
return model;
}
}
return null;
}