change method

Version change({
  1. int? major,
  2. int? minor,
  3. int? patch,
  4. int? build,
})

Changes the version by the given amounts.

Implementation

Version change({
  int? major,
  int? minor,
  int? patch,
  int? build,
}) {
  return Version(
    major: major ?? this.major,
    minor: minor ?? this.minor,
    patch: patch ?? this.patch,
    build: build ?? this.build,
  );
}