Analyzer Option or Lint Option for Flutter private variables?

39 Views Asked by At

I am building a very large codebase and spending many hours at a time on it. This can lead to me often forgetting to make a variable private, that could be private. There is currently no Analyzer warning, nor no Lint warning informing me that such variable could be private. This is a common warning when working with Java in Android Studio and it's often appreciated to tighten up a Class and make the code more readable.

Thus, is there a similar Analyzer Option or Lint Option which can be enabled to warn when a variables access could be tightened up?

Thank you

  • Create an unnecessarily public variable Expectation: warning Result: no warning
0

There are 0 best solutions below