Skip to content

Indentation on split variable declarations #1604

@iinozemtsev

Description

@iinozemtsev

When the field declaration is long, so that the name has to be wrapped, it used to be wrapped with an indent, like this:

class C {
  final LoremIpsumDolorSitAmetFactory
      _loremIpsumDolorSitAmetFactory;
}

Now there's no indent, and it is harder to read, especially when there are many fields like that.

class C {
  final LoremIpsumDolorSitAmetFactory
  _loremIpsumDolorSitAmetFactory;
}

Also when there's a comment between an annotation and a type, field name is put on a new line:

Before:

  @override
  // ignore: hash_and_equals
  final int hashCode;

Now:

  @override
  // ignore: hash_and_equals
  final int
  hashCode;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions