Lint for type annotated formal initializers (Style Guide) #57157
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
type-enhancement
A request for a change that isn't a bug
From the style guide:
DON’T type annotate initializing formals.
If a constructor parameter is using
this.
to initialize a field, then the type of the parameter is understood to be the same type as the field.GOOD:
BAD:
The text was updated successfully, but these errors were encountered: