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('FinancialConnectionsAccount(');
  if (accountHolder != null) {
    $buf
      ..writeln()
      ..write('  account_holder: ')
      ..write(accountHolder)
      ..write(',');
  }
  if (balance != null) {
    $buf
      ..writeln()
      ..write('  balance: ')
      ..write(balance)
      ..write(',');
  }
  if (balanceRefresh != null) {
    $buf
      ..writeln()
      ..write('  balance_refresh: ')
      ..write(balanceRefresh)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  category: ')
    ..write(category)
    ..write(',');
  $buf
    ..writeln()
    ..write('  created: ')
    ..write(created)
    ..write(',');
  if (displayName != null) {
    $buf
      ..writeln()
      ..write('  display_name: ')
      ..write(displayName)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  id: ')
    ..write(id)
    ..write(',');
  $buf
    ..writeln()
    ..write('  institution_name: ')
    ..write(institutionName)
    ..write(',');
  if (last4 != null) {
    $buf
      ..writeln()
      ..write('  last4: ')
      ..write(last4)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  livemode: ')
    ..write(livemode)
    ..write(',');
  $buf
    ..writeln()
    ..write('  object: ')
    ..write(object)
    ..write(',');
  if (ownership != null) {
    $buf
      ..writeln()
      ..write('  ownership: ')
      ..write(ownership)
      ..write(',');
  }
  if (ownershipRefresh != null) {
    $buf
      ..writeln()
      ..write('  ownership_refresh: ')
      ..write(ownershipRefresh)
      ..write(',');
  }
  if (permissions != null) {
    $buf
      ..writeln()
      ..write('  permissions: ')
      ..write(permissions)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  status: ')
    ..write(status)
    ..write(',');
  $buf
    ..writeln()
    ..write('  subcategory: ')
    ..write(subcategory)
    ..write(',');
  if (subscriptions != null) {
    $buf
      ..writeln()
      ..write('  subscriptions: ')
      ..write(subscriptions)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  supported_payment_method_types: ')
    ..write(supportedPaymentMethodTypes)
    ..write(',');
  if (transactionRefresh != null) {
    $buf
      ..writeln()
      ..write('  transaction_refresh: ')
      ..write(transactionRefresh)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}