toString method
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('IssuingCard(');
$buf
..writeln()
..write(' brand: ')
..write(brand)
..write(',');
if (cancellationReason != null) {
$buf
..writeln()
..write(' cancellation_reason: ')
..write(cancellationReason)
..write(',');
}
$buf
..writeln()
..write(' cardholder: ')
..write(cardholder)
..write(',');
$buf
..writeln()
..write(' created: ')
..write(created)
..write(',');
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
if (cvc != null) {
$buf
..writeln()
..write(' cvc: ')
..write(cvc)
..write(',');
}
$buf
..writeln()
..write(' exp_month: ')
..write(expMonth)
..write(',');
$buf
..writeln()
..write(' exp_year: ')
..write(expYear)
..write(',');
if (financialAccount != null) {
$buf
..writeln()
..write(' financial_account: ')
..write(financialAccount)
..write(',');
}
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
$buf
..writeln()
..write(' last4: ')
..write(last4)
..write(',');
$buf
..writeln()
..write(' livemode: ')
..write(livemode)
..write(',');
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
if (number != null) {
$buf
..writeln()
..write(' number: ')
..write(number)
..write(',');
}
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
if (personalizationDesign != null) {
$buf
..writeln()
..write(' personalization_design: ')
..write(personalizationDesign)
..write(',');
}
if (replacedBy != null) {
$buf
..writeln()
..write(' replaced_by: ')
..write(replacedBy)
..write(',');
}
if (replacementFor != null) {
$buf
..writeln()
..write(' replacement_for: ')
..write(replacementFor)
..write(',');
}
if (replacementReason != null) {
$buf
..writeln()
..write(' replacement_reason: ')
..write(replacementReason)
..write(',');
}
if (shipping != null) {
$buf
..writeln()
..write(' shipping: ')
..write(shipping)
..write(',');
}
$buf
..writeln()
..write(' spending_controls: ')
..write(spendingControls)
..write(',');
$buf
..writeln()
..write(' status: ')
..write(status)
..write(',');
$buf
..writeln()
..write(' type: ')
..write(type)
..write(',');
if (wallets != null) {
$buf
..writeln()
..write(' wallets: ')
..write(wallets)
..write(',');
}
$buf.write(')');
return $buf.toString();
}