addModel static method

Future<List<AIModel>> addModel(
  1. AIModel aiModel
)

Implementation

static Future<List<AIModel>> addModel(AIModel aiModel) async {
  aiModel.rotationOrder = await _nextRotationOrder();
  return await saveModels([aiModel]);
}