setTransactionSuccessful method

  1. @override
void setTransactionSuccessful()
override

Marks the current transaction to be committed.

Implementation

@override
void setTransactionSuccessful() {
  if (!_insideTransaction) {
    throw StateError('No transaction in progress.');
  }
  _transactionSuccessful = true;
}