missing_ name
Details about the 'missing_name' diagnostic produced by the Dart analyzer.
The 'name' field is required but missing.
Description
#
The analyzer produces this diagnostic when there's no
top-level name key. The name key
provides the name of the package, which is required.
Example
#The following code produces this diagnostic because the package doesn't have a name:
dependencies:
meta: ^1.0.2
Common fixes
#
Add the top-level key name with a value that's
the name of the package:
name: example
dependencies:
meta: ^1.0.2
除非另有说明,文档之所提及适用于 Dart 3.12.2 版本报告页面问题.