setTransactionSuccessful method
Marks the current transaction to be committed.
Implementation
@override
void setTransactionSuccessful() {
if (!_insideTransaction) {
throw StateError('No transaction in progress.');
}
_transactionSuccessful = true;
}