If you are working on an application package, then you should keep the pubspec . lock file in your repository as a snapshot of your dependencies.
If you are working on an application package, then you should keep the pubspec . lock file in your repository as a snapshot of your dependencies.