rollback method

void rollback()

Undoes all changes made in the transaction.

Implementation

void rollback() {
  final realm = _ensureOpen('rollback');

  if (!realm.isClosed) {
    realmCore.rollbackWrite(realm);
  }

  _closeTransaction();
}