toString method
toString is intentionally terse and never leaks
gateway / reader-error message contents through the
underlying types' own (already-redacted) toStrings.
Implementation
@override
String toString() {
final parts = <String>[
'kind=${kind.wire}',
'status=${transactionResult.status.wire}',
];
if (gatewayResponse != null) {
parts.add('gateway=${gatewayResponse!.status.wire}');
}
if (gatewayError != null) {
parts.add('gatewayErr=${gatewayError!.code.wire}');
}
if (readerError != null) {
parts.add('readerErr=${readerError!.code.wire}');
}
return 'TransactionCoordinatorOutcome(${parts.join(", ")})';
}