nextBreaking property Null safety

Version nextBreaking

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

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

  return _incrementMajor();
}