nextPatch property

Version nextPatch

Gets the next patch version number that follows this one.

If this version is a pre-release, then it just strips the pre-release suffix. Otherwise, it increments the patch version.

Implementation

Version get nextPatch {
  if (isPreRelease) {
    return Version(major, minor, patch);
  }

  return _incrementPatch();
}