Lint for braces in empty constructor bodies (Style Guide) #57158
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:
DO use ; instead of {} for empty constructor bodies.
In Dart, a constructor with an empty body can be terminated with just a semicolon. This is required for const constructors. For consistency and brevity, other constructors should also do this.
GOOD:
BAD:
The text was updated successfully, but these errors were encountered: