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('ConfigurationTipping(');
  if (aud != null) {
    $buf
      ..writeln()
      ..write('  aud: ')
      ..write(aud)
      ..write(',');
  }
  if (cad != null) {
    $buf
      ..writeln()
      ..write('  cad: ')
      ..write(cad)
      ..write(',');
  }
  if (chf != null) {
    $buf
      ..writeln()
      ..write('  chf: ')
      ..write(chf)
      ..write(',');
  }
  if (czk != null) {
    $buf
      ..writeln()
      ..write('  czk: ')
      ..write(czk)
      ..write(',');
  }
  if (dkk != null) {
    $buf
      ..writeln()
      ..write('  dkk: ')
      ..write(dkk)
      ..write(',');
  }
  if (eur != null) {
    $buf
      ..writeln()
      ..write('  eur: ')
      ..write(eur)
      ..write(',');
  }
  if (gbp != null) {
    $buf
      ..writeln()
      ..write('  gbp: ')
      ..write(gbp)
      ..write(',');
  }
  if (hkd != null) {
    $buf
      ..writeln()
      ..write('  hkd: ')
      ..write(hkd)
      ..write(',');
  }
  if (myr != null) {
    $buf
      ..writeln()
      ..write('  myr: ')
      ..write(myr)
      ..write(',');
  }
  if (nok != null) {
    $buf
      ..writeln()
      ..write('  nok: ')
      ..write(nok)
      ..write(',');
  }
  if (nzd != null) {
    $buf
      ..writeln()
      ..write('  nzd: ')
      ..write(nzd)
      ..write(',');
  }
  if (sek != null) {
    $buf
      ..writeln()
      ..write('  sek: ')
      ..write(sek)
      ..write(',');
  }
  if (sgd != null) {
    $buf
      ..writeln()
      ..write('  sgd: ')
      ..write(sgd)
      ..write(',');
  }
  if (usd != null) {
    $buf
      ..writeln()
      ..write('  usd: ')
      ..write(usd)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}