copyWith method

SdkPackageDependency copyWith({
  1. String? package,
  2. String? version,
  3. String? description,
  4. DependencyType? type,
})

Implementation

SdkPackageDependency copyWith({
  String? package,
  String? version,
  String? description,
  DependencyType? type,
}) =>
    SdkPackageDependency(
      package: package ?? this.package,
      version: version ?? this.version,
      description: description ?? this.description,
      type: type ?? this.type,
    );