leading_ underscores_ for_ library_ prefixes
Avoid leading underscores for library prefixes.
This rule is available as of Dart 2.16.0.
This rule has a quick fix available.
DON’T use a leading underscore for library prefixes. There is no concept of “private” for library prefixes. When one of those has a name that starts with an underscore, it sends a confusing signal to the reader. To avoid that, don’t use leading underscores in those names.
import 'dart:core' as _core;
import 'dart:core' as core;
To enable the
no_leading_underscores_for_library_prefixes under linter > rules in your
linter: rules: - no_leading_underscores_for_library_prefixes