nextBuild property
Version
get
nextBuild
Returns a new instance of Version with the next build:
- empty build will be set to
1
: 1.2.3 -> 1.2.3+1 - build with a non-numeric last segment gets
.1
appended: 1.2.3+foo42 -> 1.2.3+foo42.1 - build with a numeric last segment gets the last segment incremented: 1.2.3+foo.1.2.3 -> 1.2.3+foo.1.2.4
Implementation
Version get nextBuild => change(build: build.next);