cancelTransaction method Null safety

  1. @override
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.


void cancelTransaction({String? reason}) {
  // Default is no-op