versionWithoutBuild function

Version versionWithoutBuild(
  1. Version version
)

Implementation

Version versionWithoutBuild(Version version) {
  return Version(
    version.major,
    version.minor,
    version.patch,
    pre: version.preRelease.isEmpty ? null : version.preRelease.join('.'),
  );
}