Add lint unnecessary_constructor_name
- Use A()
over A.new()
#785
Labels
unnecessary_constructor_name
- Use A()
over A.new()
#785
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.The text was updated successfully, but these errors were encountered: