We can add flutter dependencies by the following ways. I want to know which one is efficient and also the differences between the following ways
'cupertino_icons: ^1.0.2' // What's the use if we use version number'cupertino_icons: ' // What if we don't mention the version number'cupertino_icons: any' // difference between (2 and 3)
When you add dependency like
cupertino_icons: ^1.0.2it will get any version between1.0.2and2.0.0and looks for compatible version with yourflutteranddartversion and other packages,when you add dependency like
cupertino_icons: anyit will get any version that compatible with yourflutteranddartversion and other packages.also there is another version that is
cupertino_icons: 1.0.2which get exact1.0.2version ofcupertino_icons.