I created a library which I used on a project, I want to use a branch of the library depending of what branch the project is.
For example, if the project branch is development, I want the library's branch to be get by pubspec is to be development as well.
Note:
Both project and library have development branch.
There would be test, stage and production branch as well.
flutter_payments_helper: git: url: 'git@github.com:my_project/library.git' ref: 'development' // <---