Anatomy of pubspec.yaml
Declare metadata, dependencies, and constraints.
Meet pubspec.yaml
Every Dart project has a pubspec.yaml at its root. It is the manifest that describes your project and lists everything it depends on. 📄
Why YAML
Dart uses YAML here because it is human-readable: indentation shows structure, and you write keys followed by a colon and a value. No braces needed.
name: my_app
version: 1.0.0