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('RegistrationCountryOptions(');
  if (ae != null) {
    $buf
      ..writeln()
      ..write('  ae: ')
      ..write(ae)
      ..write(',');
  }
  if (at != null) {
    $buf
      ..writeln()
      ..write('  at: ')
      ..write(at)
      ..write(',');
  }
  if (au != null) {
    $buf
      ..writeln()
      ..write('  au: ')
      ..write(au)
      ..write(',');
  }
  if (be != null) {
    $buf
      ..writeln()
      ..write('  be: ')
      ..write(be)
      ..write(',');
  }
  if (bg != null) {
    $buf
      ..writeln()
      ..write('  bg: ')
      ..write(bg)
      ..write(',');
  }
  if (ca != null) {
    $buf
      ..writeln()
      ..write('  ca: ')
      ..write(ca)
      ..write(',');
  }
  if (ch != null) {
    $buf
      ..writeln()
      ..write('  ch: ')
      ..write(ch)
      ..write(',');
  }
  if (cl != null) {
    $buf
      ..writeln()
      ..write('  cl: ')
      ..write(cl)
      ..write(',');
  }
  if (co != null) {
    $buf
      ..writeln()
      ..write('  co: ')
      ..write(co)
      ..write(',');
  }
  if (cy != null) {
    $buf
      ..writeln()
      ..write('  cy: ')
      ..write(cy)
      ..write(',');
  }
  if (cz != null) {
    $buf
      ..writeln()
      ..write('  cz: ')
      ..write(cz)
      ..write(',');
  }
  if (de != null) {
    $buf
      ..writeln()
      ..write('  de: ')
      ..write(de)
      ..write(',');
  }
  if (dk != null) {
    $buf
      ..writeln()
      ..write('  dk: ')
      ..write(dk)
      ..write(',');
  }
  if (ee != null) {
    $buf
      ..writeln()
      ..write('  ee: ')
      ..write(ee)
      ..write(',');
  }
  if (es != null) {
    $buf
      ..writeln()
      ..write('  es: ')
      ..write(es)
      ..write(',');
  }
  if (fi != null) {
    $buf
      ..writeln()
      ..write('  fi: ')
      ..write(fi)
      ..write(',');
  }
  if (fr != null) {
    $buf
      ..writeln()
      ..write('  fr: ')
      ..write(fr)
      ..write(',');
  }
  if (gb != null) {
    $buf
      ..writeln()
      ..write('  gb: ')
      ..write(gb)
      ..write(',');
  }
  if (gr != null) {
    $buf
      ..writeln()
      ..write('  gr: ')
      ..write(gr)
      ..write(',');
  }
  if (hr != null) {
    $buf
      ..writeln()
      ..write('  hr: ')
      ..write(hr)
      ..write(',');
  }
  if (hu != null) {
    $buf
      ..writeln()
      ..write('  hu: ')
      ..write(hu)
      ..write(',');
  }
  if (id != null) {
    $buf
      ..writeln()
      ..write('  id: ')
      ..write(id)
      ..write(',');
  }
  if (ie != null) {
    $buf
      ..writeln()
      ..write('  ie: ')
      ..write(ie)
      ..write(',');
  }
  if (is_ != null) {
    $buf
      ..writeln()
      ..write('  is: ')
      ..write(is_)
      ..write(',');
  }
  if (it != null) {
    $buf
      ..writeln()
      ..write('  it: ')
      ..write(it)
      ..write(',');
  }
  if (jp != null) {
    $buf
      ..writeln()
      ..write('  jp: ')
      ..write(jp)
      ..write(',');
  }
  if (kr != null) {
    $buf
      ..writeln()
      ..write('  kr: ')
      ..write(kr)
      ..write(',');
  }
  if (lt != null) {
    $buf
      ..writeln()
      ..write('  lt: ')
      ..write(lt)
      ..write(',');
  }
  if (lu != null) {
    $buf
      ..writeln()
      ..write('  lu: ')
      ..write(lu)
      ..write(',');
  }
  if (lv != null) {
    $buf
      ..writeln()
      ..write('  lv: ')
      ..write(lv)
      ..write(',');
  }
  if (mt != null) {
    $buf
      ..writeln()
      ..write('  mt: ')
      ..write(mt)
      ..write(',');
  }
  if (mx != null) {
    $buf
      ..writeln()
      ..write('  mx: ')
      ..write(mx)
      ..write(',');
  }
  if (my != null) {
    $buf
      ..writeln()
      ..write('  my: ')
      ..write(my)
      ..write(',');
  }
  if (nl != null) {
    $buf
      ..writeln()
      ..write('  nl: ')
      ..write(nl)
      ..write(',');
  }
  if (no != null) {
    $buf
      ..writeln()
      ..write('  no: ')
      ..write(no)
      ..write(',');
  }
  if (nz != null) {
    $buf
      ..writeln()
      ..write('  nz: ')
      ..write(nz)
      ..write(',');
  }
  if (pl != null) {
    $buf
      ..writeln()
      ..write('  pl: ')
      ..write(pl)
      ..write(',');
  }
  if (pt != null) {
    $buf
      ..writeln()
      ..write('  pt: ')
      ..write(pt)
      ..write(',');
  }
  if (ro != null) {
    $buf
      ..writeln()
      ..write('  ro: ')
      ..write(ro)
      ..write(',');
  }
  if (sa != null) {
    $buf
      ..writeln()
      ..write('  sa: ')
      ..write(sa)
      ..write(',');
  }
  if (se != null) {
    $buf
      ..writeln()
      ..write('  se: ')
      ..write(se)
      ..write(',');
  }
  if (sg != null) {
    $buf
      ..writeln()
      ..write('  sg: ')
      ..write(sg)
      ..write(',');
  }
  if (si != null) {
    $buf
      ..writeln()
      ..write('  si: ')
      ..write(si)
      ..write(',');
  }
  if (sk != null) {
    $buf
      ..writeln()
      ..write('  sk: ')
      ..write(sk)
      ..write(',');
  }
  if (th != null) {
    $buf
      ..writeln()
      ..write('  th: ')
      ..write(th)
      ..write(',');
  }
  if (tr != null) {
    $buf
      ..writeln()
      ..write('  tr: ')
      ..write(tr)
      ..write(',');
  }
  if (us != null) {
    $buf
      ..writeln()
      ..write('  us: ')
      ..write(us)
      ..write(',');
  }
  if (vn != null) {
    $buf
      ..writeln()
      ..write('  vn: ')
      ..write(vn)
      ..write(',');
  }
  if (za != null) {
    $buf
      ..writeln()
      ..write('  za: ')
      ..write(za)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}