copyWith method

HostedPackageDependencySpec copyWith({
  1. String? package,
  2. Optional<String>? version,
  3. Optional<String>? name,
  4. Optional<String>? url,
})

Implementation

HostedPackageDependencySpec copyWith({
  String? package,
  Optional<String>? version,
  Optional<String>? name,
  Optional<String>? url,
}) =>
    HostedPackageDependencySpec(
      package: package ?? this.package,
      version: version ?? this.version,
      name: name ?? this.name,
      url: url ?? this.url,
    );