pubspecyaml
pubspec.yaml is a YAML manifest used by the Dart package manager (pub) and Flutter tooling to describe a project's metadata, dependencies, assets, and constraints. It resides at the root of a Dart or Flutter package or application and is parsed by the tooling to determine how to fetch dependencies and configure the project.
Key fields commonly found in pubspec.yaml include name, version, description, publish_to, environment, dependencies, dev_dependencies, dependency_overrides, and
Dependencies are listed under dependencies, and tools or testing libraries under dev_dependencies. Each entry pairs a
The pubspec.yaml is used by commands like dart pub get or flutter pub get to fetch dependencies