toString method

  1. @override
String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

@override
String toString() {
  final $buf = StringBuffer()..writeln('TreasuryFinancialAccountFeatures(');
  if (cardIssuing != null) {
    $buf
      ..writeln()
      ..write('  card_issuing: ')
      ..write(cardIssuing)
      ..write(',');
  }
  if (depositInsurance != null) {
    $buf
      ..writeln()
      ..write('  deposit_insurance: ')
      ..write(depositInsurance)
      ..write(',');
  }
  if (financialAddresses != null) {
    $buf
      ..writeln()
      ..write('  financial_addresses: ')
      ..write(financialAddresses)
      ..write(',');
  }
  if (inboundTransfers != null) {
    $buf
      ..writeln()
      ..write('  inbound_transfers: ')
      ..write(inboundTransfers)
      ..write(',');
  }
  if (intraStripeFlows != null) {
    $buf
      ..writeln()
      ..write('  intra_stripe_flows: ')
      ..write(intraStripeFlows)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  object: ')
    ..write(object)
    ..write(',');
  if (outboundPayments != null) {
    $buf
      ..writeln()
      ..write('  outbound_payments: ')
      ..write(outboundPayments)
      ..write(',');
  }
  if (outboundTransfers != null) {
    $buf
      ..writeln()
      ..write('  outbound_transfers: ')
      ..write(outboundTransfers)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}