| 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 } | 10 } |
| 11 >>> can split on getter | 11 >>> can split on getter |
| 12 class Foo { | 12 class Foo { |
| 13 VeryLongTypeAnnotation get veryLongGetter => null; | 13 VeryLongTypeAnnotation get veryLongGetter => null; |
| 14 } | 14 } |
| 15 <<< | 15 <<< |
| 16 class Foo { | 16 class Foo { |
| 17 VeryLongTypeAnnotation | 17 VeryLongTypeAnnotation |
| 18 get veryLongGetter => null; | 18 get veryLongGetter => null; |
| 19 } | 19 } |
| 20 >>> can split on setter | 20 >>> can split on setter |
| 21 class Foo { | 21 class Foo { |
| 22 VeryLongTypeAnnotation set veryLongSetter(v) {} | 22 VeryLongTypeAnnotation set veryLongSetter(v) {} |
| 23 } | 23 } |
| 24 <<< | 24 <<< |
| 25 class Foo { | 25 class Foo { |
| 26 VeryLongTypeAnnotation | 26 VeryLongTypeAnnotation |
| 27 set veryLongSetter(v) {} | 27 set veryLongSetter(v) {} |
| 28 } | 28 } |
| 29 >>> do not split after "covariant" in field (at least for now) (skip: published
version of analyzer doesn't support 'covariant yet') |
| 30 class Foo { |
| 31 covariant var soMuchSoVeryLongFieldNameHere; |
| 32 covariant VeryLongTypeAnnotation field; |
| 33 } |
| 34 <<< |
| 35 class Foo { |
| 36 covariant var soMuchSoVeryLongFieldNameHere; |
| 37 covariant VeryLongTypeAnnotation |
| 38 field; |
| 39 } |
| OLD | NEW |