queueMutations method

void queueMutations({
  1. List<Model>? inserts,
  2. List<Key>? deletes,
})

Enqueues inserts and deletes which should be committed at commit time.

Implementation

void queueMutations({List<Model>? inserts, List<Key>? deletes}) {
  _checkSealed();
  if (inserts != null) {
    _inserts.addAll(inserts);
  }
  if (deletes != null) {
    _deletes.addAll(deletes);
  }
}