OLD | NEW |
1 40 columns | | 1 40 columns | |
2 >>> prefers to wrap at => before params | 2 >>> prefers to wrap at => before params |
3 class Foo { | 3 class Foo { |
4 Stream methodName(AssetId id) => methodBodyHereItIs; | 4 Stream methodName(AssetId id) => methodBodyHereItIs; |
5 } | 5 } |
6 <<< | 6 <<< |
7 class Foo { | 7 class Foo { |
8 Stream methodName(AssetId id) => | 8 Stream methodName(AssetId id) => |
9 methodBodyHereItIs; | 9 methodBodyHereItIs; |
| 10 } |
| 11 >>> can split on getter |
| 12 class Foo { |
| 13 VeryLongTypeAnnotation get veryLongGetter => null; |
| 14 } |
| 15 <<< |
| 16 class Foo { |
| 17 VeryLongTypeAnnotation |
| 18 get veryLongGetter => null; |
| 19 } |
| 20 >>> can split on setter |
| 21 class Foo { |
| 22 VeryLongTypeAnnotation set veryLongSetter(v) {} |
| 23 } |
| 24 <<< |
| 25 class Foo { |
| 26 VeryLongTypeAnnotation |
| 27 set veryLongSetter(v) {} |
10 } | 28 } |
OLD | NEW |