blob: 37aca6cbfe28be1fc59c916795fd76966422e20d [file] [edit]
40 columns |
>>> prefers to wrap at => before params
class Foo {
Stream methodName(AssetId id) => methodBodyHereItIs;
}
<<< 3.6
class Foo {
Stream methodName(AssetId id) =>
methodBodyHereItIs;
}
>>> can split on getter
class Foo {
VeryLongTypeAnnotation get veryLongGetter => null;
}
<<< 3.6
class Foo {
VeryLongTypeAnnotation
get veryLongGetter => null;
}
>>> can split on setter
class Foo {
VeryLongTypeAnnotation set veryLongSetter(v) {}
}
<<< 3.6
class Foo {
VeryLongTypeAnnotation
set veryLongSetter(v) {}
}
>>> do not split after "covariant" in field
class Foo {
covariant var soMuchSoVeryLongFieldNameHere;
covariant VeryLongTypeAnnotation field;
}
<<< 3.6
class Foo {
covariant var soMuchSoVeryLongFieldNameHere;
covariant VeryLongTypeAnnotation
field;
}
>>> do not split after "external" in field
class Foo {
external var soMuchSoVeryLongFieldNameHere;
external SuperLongTypeAnnotation field;
}
<<< 3.6
class Foo {
external var soMuchSoVeryLongFieldNameHere;
external SuperLongTypeAnnotation
field;
}
>>> do not split after "abstract" in field
class Foo {
abstract var soMuchSoVeryLongFieldNameHere;
abstract SuperLongTypeAnnotation field;
}
<<< 3.6
class Foo {
abstract var soMuchSoVeryLongFieldNameHere;
abstract SuperLongTypeAnnotation
field;
}