Skip to content

Add lint unnecessary_constructor_name - Use A() over A.new() #785

Closed
dart-archive/lints
#136
@natebosch

Description

@natebosch

https://dart-lang.github.io/linter/lints/unnecessary_constructor_name.html

The constructor tearoffs feature added one bit of useless syntax for consistency sake. We should recommend the lint which avoids the useless .new, and allows it only when it's necessary for a tearoff.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions