Prefer relative imports for files in
This rule is available as of Dart 2.6.0.
This rule has a quick fix available.
Incompatible rules: always_use_package_imports
PREFER relative imports for files in
When mixing relative and absolute imports it’s possible to create confusion
where the same member gets imported in two different ways. One way to avoid
that is to ensure you consistently use relative imports for files within the
To enable the
prefer_relative_imports under linter > rules in your
linter: rules: - prefer_relative_imports