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('BillingPortalConfiguration(');
  $buf
    ..writeln()
    ..write('  active: ')
    ..write(active)
    ..write(',');
  if (application != null) {
    $buf
      ..writeln()
      ..write('  application: ')
      ..write(application)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  business_profile: ')
    ..write(businessProfile)
    ..write(',');
  $buf
    ..writeln()
    ..write('  created: ')
    ..write(created)
    ..write(',');
  if (defaultReturnUrl != null) {
    $buf
      ..writeln()
      ..write('  default_return_url: ')
      ..write(defaultReturnUrl)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  features: ')
    ..write(features)
    ..write(',');
  $buf
    ..writeln()
    ..write('  id: ')
    ..write(id)
    ..write(',');
  $buf
    ..writeln()
    ..write('  is_default: ')
    ..write(isDefault)
    ..write(',');
  $buf
    ..writeln()
    ..write('  livemode: ')
    ..write(livemode)
    ..write(',');
  $buf
    ..writeln()
    ..write('  login_page: ')
    ..write(loginPage)
    ..write(',');
  if (metadata != null) {
    $buf
      ..writeln()
      ..write('  metadata: ')
      ..write(metadata)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  object: ')
    ..write(object)
    ..write(',');
  $buf
    ..writeln()
    ..write('  updated: ')
    ..write(updated)
    ..write(',');
  $buf.write(')');
  return $buf.toString();
}