commit method

Future commit()

Commits this transaction including all of the queued mutations.

Implementation

Future commit() {
  _checkSealed(changeState: _transactionCommitted);
  try {
    return _commitHelper(db,
        inserts: _inserts,
        deletes: _deletes,
        datastoreTransaction: _datastoreTransaction);
  } catch (error) {
    _state = _transactionCommitFailed;
    rethrow;
  }
}