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('TaxCalculation(');
$buf
..writeln()
..write(' amount_total: ')
..write(amountTotal)
..write(',');
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
if (customer != null) {
$buf
..writeln()
..write(' customer: ')
..write(customer)
..write(',');
}
$buf
..writeln()
..write(' customer_details: ')
..write(customerDetails)
..write(',');
if (expiresAt != null) {
$buf
..writeln()
..write(' expires_at: ')
..write(expiresAt)
..write(',');
}
if (id != null) {
$buf
..writeln()
..write(' id: ')
..write(id)
..write(',');
}
if (lineItems != null) {
$buf
..writeln()
..write(' line_items: ')
..write(lineItems)
..write(',');
}
$buf
..writeln()
..write(' livemode: ')
..write(livemode)
..write(',');
$buf
..writeln()
..write(' object: ')
..write(object)
..write(',');
if (shippingCost != null) {
$buf
..writeln()
..write(' shipping_cost: ')
..write(shippingCost)
..write(',');
}
$buf
..writeln()
..write(' tax_amount_exclusive: ')
..write(taxAmountExclusive)
..write(',');
$buf
..writeln()
..write(' tax_amount_inclusive: ')
..write(taxAmountInclusive)
..write(',');
$buf
..writeln()
..write(' tax_breakdown: ')
..write(taxBreakdown)
..write(',');
$buf
..writeln()
..write(' tax_date: ')
..write(taxDate)
..write(',');
$buf.write(')');
return $buf.toString();
}