Say if this is my pubspec.yaml
name: my_pub
description: My Pub
version: 0.0.1
publish_to: none
How do I get the version name/number of my_pub inside that package. Is there any way to get it?
Or should I store it as a const inside lib? In that how do i make sure both the verison name (in pubspec and inside package) be in sync.