version property

Version? get version

Returns the version field from the pubspec.yaml

Implementation

Version? get version => pubspec.version;
set version (Version? version)

Sets the version field for the pubspec. Call save to update the contents of the pubspec.yaml.

Implementation

set version(Version? version) => pubspec = pubspec.copy(version: version);