After I recently upgraded flutter to 3.0.0 and flutter_lints to 2.0.1, I started getting the following warning:
Depend on referenced packages.
Here, the dependency that is imported is defined in the pubspec.yaml of another module that the current module already depends on. In other words, the dependency flow is as follows:
A (module that gives warning and imports D) -> B -> D
I don't understand why I see this warning. Just because module A doesn't directly depend on library D? What should I do with this warning? How can I eliminate it without ignoring the rule in analysis_options.yaml file?