change method

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

Changes the given parts, returning a new instance on Version

Implementation

Version change(
        {int? major,
        int? minor,
        int? patch,
        List<dynamic>? build,
        List<dynamic>? preRelease}) =>
    Version(
      major ?? this.major,
      minor ?? this.minor,
      patch ?? this.patch,
      build: (build ?? this.build).asString,
      pre: (preRelease ?? this.preRelease).asString,
    );