What is the depend_on_referenced_packages lint in Dart and why does it fire on transitive imports?
depend_on_referenced_packages fires when a file imports or exports a package that is not listed in your own pubspec.yaml, even if it resolves through another dependency. Here is exactly what the rule checks on Dart 3.12.2 and Flutter 3.44.8, why transitive imports are a real bug, and how to fix each variant.