What is Pubspec?

The pubspec file specifies dependencies that the project requires, such as particular packages (and their versions), fonts, or image files . It also specifies other requirements, such as dependencies on developer packages (like testing or mocking packages), or particular constraints on the version of the Flutter SDK.

Read more

What is a Pubspec yaml file in Dart?

Every pub package needs some metadata so it can specify its dependencies. Pub packages that are shared with others also need to provide some other information so users can discover them. All of this metadata goes in the package’s pubspec: a file named pubspec. yaml that’s written in the YAML language .

Read more