You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is usually undesired, and may be done without the programmer realizing that he is shadowing a core identifier.
Kind
Guard against errors.
Bad Examples
// BadclassType {}
Good Examples
// GoodclassMyType {}
Discussion
Similar to #2470 (the cause is the same, but while the mentioned issue is related to importing, this one is related to the declaration of the identifiers themselves).
The text was updated successfully, but these errors were encountered:
avoid_shadowing_core_libraries_identifiers
Description
Avoid shadowing identifiers provided by core (
dart:*
) libraries.Details
It's not an error to shadow identifiers provided by core libraries.
For instance, one can define a class named
Type
and no error will be emitted.Even though the identifier is present in the scope, there's an exception that allows a declaration from a non-system library to shadow declarations from system libraries.
This is usually undesired, and may be done without the programmer realizing that he is shadowing a core identifier.
Kind
Guard against errors.
Bad Examples
Good Examples
Discussion
Similar to #2470 (the cause is the same, but while the mentioned issue is related to importing, this one is related to the declaration of the identifiers themselves).
The text was updated successfully, but these errors were encountered: