copyWith method

ScanResult copyWith({
  1. List<ProjectInfo>? priorityProjects,
  2. List<ProjectInfo>? defaultProjects,
  3. List<CacheTarget>? globalTargets,
})

Creates a copy of this ScanResult with updated fields.

Implementation

ScanResult copyWith({
  List<ProjectInfo>? priorityProjects,
  List<ProjectInfo>? defaultProjects,
  List<CacheTarget>? globalTargets,
}) {
  return ScanResult(
    priorityProjects: priorityProjects ?? this.priorityProjects,
    defaultProjects: defaultProjects ?? this.defaultProjects,
    globalTargets: globalTargets ?? this.globalTargets,
  );
}