Pubspec

Noun · Development

Definitions

  1. The pubspec.yaml file in Dart and Flutter projects that declares metadata, dependencies, and configuration. Equivalent to package.json in Node.js or Cargo.toml in Rust. The pub package manager reads it to resolve and fetch dependencies.

    In plain English: The configuration file in a Dart/Flutter project that lists what libraries your project needs and basic info about the project itself.

    Example: "Added the http package to pubspec.yaml and ran flutter pub get — dependencies resolved in seconds."

Related Terms