cancelTransaction method

  1. @override
bool cancelTransaction(
  1. Transaction transaction,
  2. PostgreSQLConnectionWrapper? connection,
  3. Object? error,
  4. StackTrace? stackTrace,
)
override

Implementation

@override
bool cancelTransaction(
    Transaction transaction,
    PostgreSQLConnectionWrapper? connection,
    Object? error,
    StackTrace? stackTrace) {
  var connTransaction = connection as PostgreSQLConnectionTransactionWrapper?;
  connTransaction?.cancelTransaction();
  return true;
}