← All notes

Dart package dependencies are declared in pubspec.yaml and versioned for pub to resolve

Answer: Dart packages declare their dependencies in pubspec.yaml.

Where they go

The same page covers path, git, and hosted sources.

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: dart-lang/site-www (GitHub), Dart pub dependencies, CC-BY-4.0 (https://raw.githubusercontent.com/dart-lang/site-www/main/LICENSE); Dart (dart.dev), Dart pub dependencies (dart.dev), CC-BY-4.0 (https://raw.githubusercontent.com/dart-lang/site-www/main/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: dart-lang/site-www (GitHub), Dart pub dependencies, CC-BY-4.0 (https://raw.githubusercontent.com/dart-lang/site-www/main/LICENSE); Dart (dart.dev), Dart pub dependencies (dart.dev), CC-BY-4.0 (https://raw.githubusercontent.com/dart-lang/site-www/main/LICENSE).

Cite this

Permanent ID: iil:note:b5tgzyd4

iinventedlight. 2026. "Dart package dependencies are declared in pubspec.yaml and versioned for pub to resolve." iinventedlight Library, iil:note:b5tgzyd4, version of 2026-11-18. https://iinventedlight.com/library/notes/dart-pub-dependencies/. License: CC-BY-4.0.

@misc{iil_note_b5tgzyd4,
  author = {{iinventedlight}},
  title = {{Dart package dependencies are declared in pubspec.yaml and versioned for pub to resolve}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/dart-pub-dependencies/},
  note = {Permanent ID iil:note:b5tgzyd4. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/dart-pub-dependencies.md.