copyWith method
Implementation
SemVer copyWith({
int? major,
int? minor,
int? patch,
String? preRelease,
String? buildMetadata,
}) {
return SemVer(
major ?? this.major,
minor ?? this.minor,
patch ?? this.patch,
preRelease: preRelease ?? this.preRelease,
buildMetadata: buildMetadata ?? this.buildMetadata,
);
}