release property
Version
get
release
Promotes a pre-release to a release by clearing the pre-release and the build
- empty pre-release can not be promoted. Throws a StateError
Implementation
Version get release {
if (preRelease.isEmpty) throw StateError('Not a pre-release');
return change(preRelease: [], build: []);
}