blob: 8ee9776a9b515610ca281503f8cf62b6fa0575a6 [file] [log] [blame]
>>>
void main() {
model..account = (new Account()
..accountId = new Int64(111)
..tags = (new Account_Tags()..accountHotlist.add(new Hotlist()..hotlistId = new Int64(10))));
}
<<<
void main() {
model
..account =
(new Account()
..accountId = new Int64(111)
..tags =
(new Account_Tags()
..accountHotlist.add(
new Hotlist()..hotlistId = new Int64(10),
)));
}
>>> (indent 4)
main() {
receiver
..formattedTotal = _total == 0
? ""
: _chartType == "PieChart"
? _formatter.formatAsPercent(item.value / _total, fractionDigits: 1)
: _formatter.formatValue(item.value, item.valueType);
}
<<<
### TODO(1465): Allow the conditional after the `=`.
main() {
receiver
..formattedTotal =
_total == 0
? ""
: _chartType == "PieChart"
? _formatter.formatAsPercent(
item.value / _total,
fractionDigits: 1,
)
: _formatter.formatValue(item.value, item.valueType);
}
>>> (indent 6)
main() {
receiver
..formattedTotal = _total == 0
? ""
: _chartType == "PieChart"
? _formatter.formatAsPercent(item.value / _total, fractionDigits: 1)
: _formatter.formatValue(item.value, item.valueType);
}
<<<
### TODO(1465): Allow the conditional after the `=`.
main() {
receiver
..formattedTotal =
_total == 0
? ""
: _chartType == "PieChart"
? _formatter.formatAsPercent(
item.value / _total,
fractionDigits: 1,
)
: _formatter.formatValue(item.value, item.valueType);
}