I not sure why there is a cap symbol in pubspec.yaml file under dependencies. See below image.
The project is working even without the cap symbol.
I not sure why there is a cap symbol in pubspec.yaml file under dependencies. See below image.
The project is working even without the cap symbol.
This is called caret syntax:
Caret syntax provides a more compact way of expressing the most common sort of version constraint.
^versionmeans "the range of all versions guaranteed to be backwards compatible with the specified version", and follows pub’s convention for semantic versioning.
So in your example, you've got:
^1.1.6 - equivalent to >=1.1.6 <2.0^0.2.3 - equivalent to >=0.2.3 <0.3.0^0.1.2 - equivalent to >=0.1.2 <0.2.0