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('Review(');
if (billingZip != null) {
$buf
..writeln()
..write(' billing_zip: ')
..write(billingZip)
..write(',');
}
if (charge != null) {
$buf
..writeln()
..write(' charge: ')
..write(charge)
..write(',');
}
if (closedReason != null) {
$buf
..writeln()
..write(' closed_reason: ')
..write(closedReason)
..write(',');
}
$buf
..writeln()
..write(' created: ')
..write(created)
..write(',');
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
if (ipAddress != null) {
$buf
..writeln()
..write(' ip_address: ')
..write(ipAddress)
..write(',');
}
if (ipAddressLocation != null) {
$buf
..writeln()
..write(' ip_address_location: ')
..write(ipAddressLocation)
..write(',');
}
$buf
..writeln()
..write(' livemode: ')
..write(livemode)
..write(',');
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
$buf
..writeln()
..write(' open: ')
..write(open)
..write(',');
$buf
..writeln()
..write(' opened_reason: ')
..write(openedReason)
..write(',');
if (paymentIntent != null) {
$buf
..writeln()
..write(' payment_intent: ')
..write(paymentIntent)
..write(',');
}
$buf
..writeln()
..write(' reason: ')
..write(reason)
..write(',');
if (session != null) {
$buf
..writeln()
..write(' session: ')
..write(session)
..write(',');
}
$buf.write(')');
return $buf.toString();
}