cancelTransaction abstract method

void cancelTransaction({
  1. String? reason,
})

Cancels a transaction on this context.

If this context is an instance of PostgreSQLConnection, this method has no effect. If the context is a transaction context (passed as the argument to PostgreSQLConnection.transaction), this will rollback the transaction.

Implementation

void cancelTransaction({String? reason});