What is Pubspec lock?

lock file lets you test your package against the latest compatible versions of its dependencies . For application packages, we recommend that you commit the pubspec. lock file. Saving pubspec. lock ensures that everyone working on the app uses the exact same versions.

Read more