export_of_non_library
Details about the 'export_of_non_library' diagnostic produced by the Dart analyzer.
The exported library '{0}' can't have a part-of directive.
Description
#The analyzer produces this diagnostic when an export directive references a part rather than a library.
Example
#Given a file part.dart containing
part of lib;
The following code produces this diagnostic because the file part.dart is
a part, and only libraries can be exported:
library lib;
export 'part.dart';
Common fixes
#Either remove the export directive, or change the URI to be the URI of the library containing the part.
除非另有说明,文档之所提及适用于 Dart 3.10.3 版本报告页面问题.