saveModels method

Future<void> saveModels(
  1. List<T> models
)

Implementation

Future<void> saveModels(List<T> models) async {
  List<T> tmp = [];

  tmp.addAll(models);

  for (T model in tmp) {
    await model.loadRelations();

    await _save(model);
  }

  await change(CollectionChangeType.createOrUpdateMultiple, null);
}