blob: ebca8c5b300394f130e26ce297a1d107bc8694c4 [file] [log] [blame]
40 columns |
>>> prefers to wrap at => before params
class Foo {
Stream methodName(AssetId id) => methodBodyHereItIs;
}
<<<
class Foo {
Stream methodName(AssetId id) =>
methodBodyHereItIs;
}
>>> can split on getter
class Foo {
VeryLongTypeAnnotation get veryLongGetter => null;
}
<<<
class Foo {
VeryLongTypeAnnotation
get veryLongGetter => null;
}
>>> can split on setter
class Foo {
VeryLongTypeAnnotation set veryLongSetter(v) {}
}
<<<
class Foo {
VeryLongTypeAnnotation
set veryLongSetter(v) {}
}
>>> do not split after "covariant" in field (at least for now) (skip: published version of analyzer doesn't support 'covariant yet')
class Foo {
covariant var soMuchSoVeryLongFieldNameHere;
covariant VeryLongTypeAnnotation field;
}
<<<
class Foo {
covariant var soMuchSoVeryLongFieldNameHere;
covariant VeryLongTypeAnnotation
field;
}