rollbackTransaction method

bool rollbackTransaction()

Rollback the current transaction started by a call to #startTransaction, undoing any changes.

For convenience, this method is called by Model#rollbackTransaction and Diagram#rollbackTransaction.

This undoes and then discards the changes in the #currentTransaction. You must have started a transaction previously. @return {boolean} true if ending a top-level transaction. @see #startTransaction @see #commitTransaction

Implementation

_i2.bool rollbackTransaction() => _i4.callMethod(
      this,
      'rollbackTransaction',
      [],
    );