OLD | NEW |
1 40 columns | | 1 40 columns | |
2 >>> Single initializers can be on one line | 2 >>> Single initializers can be on one line |
3 class Foo extends Bar { | 3 class Foo extends Bar { |
4 final int b; | 4 final int b; |
5 Foo(int a, this.b) : super(a); | 5 Foo(int a, this.b) : super(a); |
6 } | 6 } |
7 <<< | 7 <<< |
8 class Foo extends Bar { | 8 class Foo extends Bar { |
9 final int b; | 9 final int b; |
10 Foo(int a, this.b) : super(a); | 10 Foo(int a, this.b) : super(a); |
(...skipping 29 matching lines...) Expand all Loading... |
40 new Thing(argument, argument); | 40 new Thing(argument, argument); |
41 >>> splits before ":" if the parameter list does not fit on one line | 41 >>> splits before ":" if the parameter list does not fit on one line |
42 class Foo { | 42 class Foo { |
43 Foo(int longArg1, int longArg2, int longArg3) : this._(longArg1); | 43 Foo(int longArg1, int longArg2, int longArg3) : this._(longArg1); |
44 } | 44 } |
45 <<< | 45 <<< |
46 class Foo { | 46 class Foo { |
47 Foo(int longArg1, int longArg2, | 47 Foo(int longArg1, int longArg2, |
48 int longArg3) | 48 int longArg3) |
49 : this._(longArg1); | 49 : this._(longArg1); |
50 } | 50 } |
| 51 >>> indent parameters more if body is a wrapped => |
| 52 class Foo { |
| 53 Foo(firstArgument, secondArgument, third) => "very long body that must wrap"; |
| 54 } |
| 55 <<< |
| 56 class Foo { |
| 57 Foo(firstArgument, secondArgument, |
| 58 third) => |
| 59 "very long body that must wrap"; |
| 60 } |
OLD | NEW |