copyWith method

ProjectInfo copyWith({
  1. String? path,
  2. List<CacheTarget>? targets,
  3. bool? isPriority,
})

Creates a copy of this ProjectInfo with updated fields.

Implementation

ProjectInfo copyWith({
  String? path,
  List<CacheTarget>? targets,
  bool? isPriority,
}) {
  return ProjectInfo(
    path: path ?? this.path,
    targets: targets ?? this.targets,
    isPriority: isPriority ?? this.isPriority,
  );
}