Member-only story
Customizing Flutter Lints
Why customize lints if flutter_lints is enabled? Well for one we should not be reacting to a Type set s non-null by casting to a null:
Instead, we want to do this:
We can encourage that developer behavior if we use this lint rule:
cast_nullable_to_non_nullable: true
Such specific rules are not enabled in the main, core, or recommended lint rules in the flutter_lints package. But, that is not the only reason to customize lints through redefining the lint options in the analysis options YAML file. We can also map new feedback behavior and change the way the language checks are enforced.
Let me show how using the Passy Lints(Dart-Lints) package.
Get Access To My Free Stuff