blob: 9a064dea58068b9eac8dfdc92c4f1d0f82b55601 [file] [log] [blame]
40 columns |
>>> Covariant.
class Foo {
covariant var bar;
covariant int baz;
}
<<<
class Foo {
covariant var bar;
covariant int baz;
}
>>> Late.
class Foo {
static late final int i;
static late int i;
static late var i;
covariant late var i;
covariant late int i;
late final int i;
late int i;
late var i;
}
<<<
class Foo {
static late final int i;
static late int i;
static late var i;
covariant late var i;
covariant late int i;
late final int i;
late int i;
late var i;
}
>>> Abstract.
class Foo {
abstract covariant var a , b ;
abstract final int c;
abstract int i;
}
<<<
class Foo {
abstract covariant var a, b;
abstract final int c;
abstract int i;
}
>>> Don't split after `covariant`.
class Foo {
covariant var soMuchSoVeryLongFieldNameHere;
covariant VeryLongTypeAnnotation field;
}
<<<
class Foo {
covariant var soMuchSoVeryLongFieldNameHere;
covariant VeryLongTypeAnnotation
field;
}
>>> Don't split after `abstract`.
class Foo {
abstract var soMuchSoVeryLongFieldNameHere;
abstract SuperLongTypeAnnotation field;
}
<<<
class Foo {
abstract var soMuchSoVeryLongFieldNameHere;
abstract SuperLongTypeAnnotation
field;
}
>>> Constant.
class Foo {
static const uptyped = 123 ;
static const String typed = 'string' ;
const uptypedInstance = 123 ;
const StringInstance typed = 'string' ;
}
<<<
class Foo {
static const uptyped = 123;
static const String typed = 'string';
const uptypedInstance = 123;
const StringInstance typed = 'string';
}