Add a dev_dependency on package:flutter_lints to your project’s pubspec. yaml by running flutter pub add –dev flutter_lints in the root directory of the project . The newly activated lint set may identify some new issues in your code.
How do I add Flutter lint?
Add a dev_dependency on package:flutter_lints to your project’s pubspec. yaml by running flutter pub add –dev flutter_lints in the root directory of the project . The newly activated lint set may identify some new issues in your code.