'Automatically upgrade a dart package

I have a package on github and it is been used in two of my projects, but every time I make a change to the package I have to run flutter pub upgrade on both projects. Is there a way to make this automatically? Or some way to force me to run the command on every update?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source