increase method

Version increase({
  1. int major = 0,
  2. int minor = 0,
  3. int patch = 0,
  4. int build = 0,
})

Increases the version by the given amounts.

Implementation

Version increase({
  int major = 0,
  int minor = 0,
  int patch = 0,
  int build = 0,
}) {
  return Version(
    major: this.major + major,
    minor: this.minor + minor,
    patch: this.patch + patch,
    build: this.build + build,
  );
}