incrementMajor method

Version incrementMajor()

Creates a new Version with the major version number incremented.

Also resets the minor and patch numbers to 0, and clears the build and preRelease information.

Implementation

Version incrementMajor() => Version(this.major + 1, 0, 0);