OLD | NEW |
(Empty) | |
| 1 >>> |
| 2 void main() { |
| 3 model..account = (new Account() |
| 4 ..accountId = new Int64(111) |
| 5 ..tags = (new Account_Tags()..accountHotlist.add(new Hotlist()..hotlistId =
new Int64(10)))); |
| 6 } |
| 7 <<< |
| 8 void main() { |
| 9 model |
| 10 ..account = (new Account() |
| 11 ..accountId = new Int64(111) |
| 12 ..tags = (new Account_Tags() |
| 13 ..accountHotlist.add(new Hotlist()..hotlistId = new Int64(10)))); |
| 14 } |
| 15 >>> (indent 4) |
| 16 main() { |
| 17 receiver |
| 18 ..formattedTotal = _total == 0 |
| 19 ? "" |
| 20 : _chartType == "PieChart" |
| 21 ? _formatter.formatAsPercent(item.value / _total, fractionDigits:
1) |
| 22 : _formatter.formatValue(item.value, item.valueType); |
| 23 } |
| 24 <<< |
| 25 main() { |
| 26 receiver |
| 27 ..formattedTotal = _total == 0 |
| 28 ? "" |
| 29 : _chartType == "PieChart" |
| 30 ? _formatter.formatAsPercent(item.value / _total, |
| 31 fractionDigits: 1) |
| 32 : _formatter.formatValue(item.value, item.valueType); |
| 33 } |
OLD | NEW |