doc_ import_ cannot_ have_ combinators
Details about the 'doc_import_cannot_have_combinators' diagnostic produced by the Dart analyzer.
Doc imports can't have show or hide combinators.
Description
#
The analyzer produces this diagnostic when a documentation
import has one or more hide or
show combinators.
Using combinators isn't supported for documentation imports.
Example
#
The following code produces this diagnostic because the
documentation import has a show combinator:
/// @docImport 'package:meta/meta.dart' show max;
library;
Common fixes
#
Remove the hide and
show combinators:
/// @docImport 'package:meta/meta.dart';
library;
除非另有说明,文档之所提及适用于 Dart 3.12.2 版本报告页面问题.