decrease method

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

Decreases the version by the given amounts.

Implementation

Version decrease({
  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,
  );
}