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('SourceCreateOptions(');
if (amount != null) {
$buf
..writeln()
..write(' amount: ')
..write(amount)
..write(',');
}
if (currency != null) {
$buf
..writeln()
..write(' currency: ')
..write(currency)
..write(',');
}
if (customer != null) {
$buf
..writeln()
..write(' customer: ')
..write(customer)
..write(',');
}
if (expand != null) {
$buf
..writeln()
..write(' expand: ')
..write(expand)
..write(',');
}
if (flow != null) {
$buf
..writeln()
..write(' flow: ')
..write(flow)
..write(',');
}
if (mandate != null) {
$buf
..writeln()
..write(' mandate: ')
..write(mandate)
..write(',');
}
if (metadata != null) {
$buf
..writeln()
..write(' metadata: ')
..write(metadata)
..write(',');
}
if (originalSource != null) {
$buf
..writeln()
..write(' original_source: ')
..write(originalSource)
..write(',');
}
if (owner != null) {
$buf
..writeln()
..write(' owner: ')
..write(owner)
..write(',');
}
if (receiver != null) {
$buf
..writeln()
..write(' receiver: ')
..write(receiver)
..write(',');
}
if (redirect != null) {
$buf
..writeln()
..write(' redirect: ')
..write(redirect)
..write(',');
}
if (sourceOrder != null) {
$buf
..writeln()
..write(' source_order: ')
..write(sourceOrder)
..write(',');
}
if (statementDescriptor != null) {
$buf
..writeln()
..write(' statement_descriptor: ')
..write(statementDescriptor)
..write(',');
}
if (token != null) {
$buf
..writeln()
..write(' token: ')
..write(token)
..write(',');
}
if (type != null) {
$buf
..writeln()
..write(' type: ')
..write(type)
..write(',');
}
if (usage != null) {
$buf
..writeln()
..write(' usage: ')
..write(usage)
..write(',');
}
$buf.write(')');
return $buf.toString();
}