withErrorStackTrace method

TransactionAbortedError withErrorStackTrace(
  1. StackTrace? errorStackTrace
)

Implementation

TransactionAbortedError withErrorStackTrace(StackTrace? errorStackTrace) {
  if (errorStackTrace == null ||
      identical(this.errorStackTrace, errorStackTrace)) {
    return this;
  }

  return TransactionAbortedError(
    reason: reason,
    payload: payload,
    error: error,
    errorStackTrace: errorStackTrace,
  );
}