Version File
When creating a release, pub_release will create or update a dart file containing the package version no.
The version file is called:
The contents of the version file will be:
Where the packageVersion is set to the value in your pubspec.yaml.
The packageVersion variable provides a convenient method if you need to display the version no. of your package.
Last updated