copyWith method

DarwinVersion copyWith({
  1. int? majorVersion,
  2. int? minorVersion,
  3. int? patchVersion,
})

Copies a DarwinVersion.

Implementation

DarwinVersion copyWith({
  int? majorVersion,
  int? minorVersion,
  int? patchVersion,
}) {
  return DarwinVersion(
    majorVersion: majorVersion ?? this.majorVersion,
    minorVersion: minorVersion ?? this.minorVersion,
    patchVersion: patchVersion ?? this.patchVersion,
  );
}