commit method
Commits the transaction.
Returns true on success, false on failure. After this call the transaction is no longer active and the finalizer will not fire.
Implementation
bool commit() {
if (_state != _State.active) {
return false;
}
final ok = _backend.commitTransaction(_txnId);
_state = ok ? _State.committed : _State.failed;
if (ok) _detachFinalizer();
return ok;
}