Flutter Lints With Super Powers

Fred Grott
5 min readAug 24, 2022

An analysis options YAML file is the most under-rated cornerstone to crafting that flutter app in the dart computer language. A correctly worked out analysis options YAML file can make your dart and flutter programming life easy. Not re-working an analysis options YAML file can make your flutter programming life difficult and brittle.

The Flutter SDK team came up with a recommended set of dart and flutter lints in the form of the flutter lints package. You can get dart programming superpowers as far as clean working code if you tune the analysis options YAML file to go way beyond flutter lints.

How Dart Lints Work

All computer language compilers are known as lazy compilers, as it would take too much computer cod logic and processing power to work through every programmer choice in coding logic and data. Instead, what all computer compilers do is put off some work to the programmer in the form of an accessory tool, an analyzer that takes as input a lint file that the programmer defines. In dart and flutter Apps this lint file is called the analysis options file.

And the list of dart lints included with the dart SDK in the flutter SDK includes:

- Always Declare Return Types

- Always Put Control Body On New Line

--

--

Fred Grott
Fred Grott

No responses yet