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('PaymentIntentNextAction(');
  if (alipayHandleRedirect != null) {
    $buf
      ..writeln()
      ..write('  alipay_handle_redirect: ')
      ..write(alipayHandleRedirect)
      ..write(',');
  }
  if (boletoDisplayDetails != null) {
    $buf
      ..writeln()
      ..write('  boleto_display_details: ')
      ..write(boletoDisplayDetails)
      ..write(',');
  }
  if (cardAwaitNotification != null) {
    $buf
      ..writeln()
      ..write('  card_await_notification: ')
      ..write(cardAwaitNotification)
      ..write(',');
  }
  if (cashappHandleRedirectOrDisplayQrCode != null) {
    $buf
      ..writeln()
      ..write('  cashapp_handle_redirect_or_display_qr_code: ')
      ..write(cashappHandleRedirectOrDisplayQrCode)
      ..write(',');
  }
  if (displayBankTransferInstructions != null) {
    $buf
      ..writeln()
      ..write('  display_bank_transfer_instructions: ')
      ..write(displayBankTransferInstructions)
      ..write(',');
  }
  if (konbiniDisplayDetails != null) {
    $buf
      ..writeln()
      ..write('  konbini_display_details: ')
      ..write(konbiniDisplayDetails)
      ..write(',');
  }
  if (oxxoDisplayDetails != null) {
    $buf
      ..writeln()
      ..write('  oxxo_display_details: ')
      ..write(oxxoDisplayDetails)
      ..write(',');
  }
  if (paynowDisplayQrCode != null) {
    $buf
      ..writeln()
      ..write('  paynow_display_qr_code: ')
      ..write(paynowDisplayQrCode)
      ..write(',');
  }
  if (pixDisplayQrCode != null) {
    $buf
      ..writeln()
      ..write('  pix_display_qr_code: ')
      ..write(pixDisplayQrCode)
      ..write(',');
  }
  if (promptpayDisplayQrCode != null) {
    $buf
      ..writeln()
      ..write('  promptpay_display_qr_code: ')
      ..write(promptpayDisplayQrCode)
      ..write(',');
  }
  if (redirectToUrl != null) {
    $buf
      ..writeln()
      ..write('  redirect_to_url: ')
      ..write(redirectToUrl)
      ..write(',');
  }
  if (swishHandleRedirectOrDisplayQrCode != null) {
    $buf
      ..writeln()
      ..write('  swish_handle_redirect_or_display_qr_code: ')
      ..write(swishHandleRedirectOrDisplayQrCode)
      ..write(',');
  }
  $buf
    ..writeln()
    ..write('  type: ')
    ..write(type)
    ..write(',');
  if (useStripeSdk != null) {
    $buf
      ..writeln()
      ..write('  use_stripe_sdk: ')
      ..write(useStripeSdk)
      ..write(',');
  }
  if (verifyWithMicrodeposits != null) {
    $buf
      ..writeln()
      ..write('  verify_with_microdeposits: ')
      ..write(verifyWithMicrodeposits)
      ..write(',');
  }
  if (wechatPayDisplayQrCode != null) {
    $buf
      ..writeln()
      ..write('  wechat_pay_display_qr_code: ')
      ..write(wechatPayDisplayQrCode)
      ..write(',');
  }
  if (wechatPayRedirectToAndroidApp != null) {
    $buf
      ..writeln()
      ..write('  wechat_pay_redirect_to_android_app: ')
      ..write(wechatPayRedirectToAndroidApp)
      ..write(',');
  }
  if (wechatPayRedirectToIosApp != null) {
    $buf
      ..writeln()
      ..write('  wechat_pay_redirect_to_ios_app: ')
      ..write(wechatPayRedirectToIosApp)
      ..write(',');
  }
  $buf.write(')');
  return $buf.toString();
}