dependencies:
your_package:
path: ../your_package/
A basic pubspec is generated when you create a new Flutter project.
It’s located at the top of the project tree and contains metadata about
the project that the Dart and Flutter tooling needs to know
The pubspec file specifies dependencies that the project requires,
such as particular packages (and their versions), fonts, or image files
Every Flutter project includes a pubspec. yaml file, often referred to as the pubspec. A basic pubspec is generated when you create a new Flutter project. ... The pubspec file specifies dependencies that the project requires, such as particular packages (and their versions), fonts, or image files.