Nothing soothes more than clean code!

Don’t you get clumsy looking at dirty, messed up code? One should always follow strict rules to make code clean! Let’s see how you can do that with lint rules in Dart!

Step 1: Add flutter_lints into dev_dependency and run flutter pub get!

dev_dependencies:
flutter_lints: ^1.0.4

Step 2: Create analysis_options.yaml file in the root of your project

Don’t forget to connect with me on:

Don’t stop, until you are breathing!💙
- Abhishek Doshi

--

--

Google Developer Expert — Dart, Flutter & Firebase 💙💛

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store