version property
Version?
version
Returns the version field from the pubspec.yaml
Implementation
Version? get version => pubspec.version;
void
version=(Version? version)
Sets the version field for the pubspec. Call saveToFile to update the contents of the pubspec.yaml.
Implementation
set version(Version? version) => pubspec = pubspec.copy(version: version);