putAndGetManyAsync method

Future<List<T>> putAndGetManyAsync(
  1. List<T> objects, {
  2. PutMode mode = PutMode.put,
})

Like putManyAsync, but returns a copy of the objects with new IDs assigned.

If the objects are new (their Id property is 0 or null), returns a copy of them with the Id property set to the assigned ID. This also applies to new objects in their relations.

Implementation

Future<List<T>> putAndGetManyAsync(List<T> objects,
        {PutMode mode = PutMode.put}) async =>
    await _store.runAsync(
        _putAndGetManyAsyncCallback<T>, _PutManyAsyncArgs(objects, mode));