stopTransaction method
If #transactionResult is null, call Diagram#rollbackTransaction, otherwise call Diagram#commitTransaction.
This is normally called in an override of #doDeactivate,
if #startTransaction was called in #doActivate.
Alternatively, you can surround a block of code that sets the #transactionResult
with calls to startTransaction
and stopTransaction
.
This method may be overridden. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @return {boolean} the result of the call to rollback or commit the transaction.
Implementation
_i2.bool stopTransaction() => _i4.callMethod(
this,
'stopTransaction',
[],
);