Introducing package:flutter_lints

Summary

Context

Migration guide

Existing custom analysis_options.yaml file

Customizing the lints

Timeline

References

Summary

The package:flutter_lints defines the latest set of recommended lints that
encourage good coding practices for Flutter apps, packages, and plugins. Projects
created with flutter create using Flutter version 2.5 or newer are
already enabled to use the latest set of recommended lints. Projects created
prior to that version can upgrade to it with the instructions in this guide.

Context

analysis_options_user.yaml that was
used by the

dart analyzer to identify code issues if a Flutter project
didn’t define a custom

package:lints it also aligns the lints recommended for Flutter
projects with the rest of the Dart ecosystem.