We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6d90b2 + 595522e commit f2d6bbbCopy full SHA for f2d6bbb
lib/src/model_utils.dart
@@ -45,7 +45,11 @@ bool isInExportedLibraries(
45
.any((lib) => lib == library || lib.exportedLibraries.contains(library));
46
}
47
48
-bool isPrivate(Element e) => e.name.startsWith('_');
+bool isPrivate(Element e) =>
49
+ e.name.startsWith('_') ||
50
+ (e is LibraryElement &&
51
+ (e.identifier == 'dart:_internal' ||
52
+ e.identifier == 'dart:nativewrappers'));
53
54
bool isPublic(Element e) {
55
if (isPrivate(e)) return false;
0 commit comments