copyWith method

PathPackageDependency copyWith({
  1. String? package,
  2. String? version,
  3. String? path,
  4. bool? relative,
  5. DependencyType? type,
})

Implementation

PathPackageDependency copyWith({
  String? package,
  String? version,
  String? path,
  bool? relative,
  DependencyType? type,
}) =>
    PathPackageDependency(
      package: package ?? this.package,
      version: version ?? this.version,
      path: path ?? this.path,
      relative: relative ?? this.relative,
      type: type ?? this.type,
    );