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('IssuingNetworkTokenWalletProvider(');
  if (accountId != null) {
    $buf
      ..writeln()
      ..write('  account_id: ')
      ..write(accountId)
      ..write(',');
  }
  if (accountTrustScore != null) {
    $buf
      ..writeln()
      ..write('  account_trust_score: ')
      ..write(accountTrustScore)
      ..write(',');
  }
  if (cardNumberSource != null) {
    $buf
      ..writeln()
      ..write('  card_number_source: ')
      ..write(cardNumberSource)
      ..write(',');
  }
  if (cardholderAddress != null) {
    $buf
      ..writeln()
      ..write('  cardholder_address: ')
      ..write(cardholderAddress)
      ..write(',');
  }
  if (cardholderName != null) {
    $buf
      ..writeln()
      ..write('  cardholder_name: ')
      ..write(cardholderName)
      ..write(',');
  }
  if (deviceTrustScore != null) {
    $buf
      ..writeln()
      ..write('  device_trust_score: ')
      ..write(deviceTrustScore)
      ..write(',');
  }
  if (hashedAccountEmailAddress != null) {
    $buf
      ..writeln()
      ..write('  hashed_account_email_address: ')
      ..write(hashedAccountEmailAddress)
      ..write(',');
  }
  if (reasonCodes != null) {
    $buf
      ..writeln()
      ..write('  reason_codes: ')
      ..write(reasonCodes)
      ..write(',');
  }
  if (suggestedDecision != null) {
    $buf
      ..writeln()
      ..write('  suggested_decision: ')
      ..write(suggestedDecision)
      ..write(',');
  }
  if (suggestedDecisionVersion != null) {
    $buf
      ..writeln()
      ..write('  suggested_decision_version: ')
      ..write(suggestedDecisionVersion)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}