sort_constructors_first should let you put getters & setters before constructors #57664
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
When I switched a property from an instance variable to a getter, this linter rule forced me to move the getter below the constructors. That doesn't feel right, and it's now harder to see what properties the class has. It seems like getters and setters shouldn't be treated like ordinary methods.
Before:
Expected:
Actual:
The text was updated successfully, but these errors were encountered: