When I have to use a package, I'm going to pub.dev and look for it.
Once I got it, I click on the installing tab.
Then I got the package's latest version and I add it to the pubspec.yaml
I've seen plenty of times another way of adding a package to the pubspect.yaml:
I wonder if this way also refers to the package's latest version.
Thanks in advance !!