updateModel method
Updates the given model
to the map and the given database in
repository
Implementation
Future<T> updateModel(T model, {String? databaseName}) async {
final database = specificDatabase(databaseName);
final newModel = await database.saveModel<T>(model);
addLoadedModels([newModel]);
return newModel;
}