nextBreaking property

Gets the next breaking version number that follows this one.

Increments major if it's greater than zero, otherwise minor, resets subsequent digits to zero, and strips any preRelease or build suffix.

Implementation

PackageVersionNumberGeneralLibrary get nextBreaking {
  if (major == 0) {
    return _incrementMinor();
  }

  return _incrementMajor();
}