copyWith method

InstallConfig copyWith({
  1. List<String>? features,
  2. List<String>? skills,
  3. List<String>? agents,
  4. bool? overwrite,
  5. String? skillsPath,
})

Create a copy with modified fields

Implementation

InstallConfig copyWith({
  List<String>? features,
  List<String>? skills,
  List<String>? agents,
  bool? overwrite,
  String? skillsPath,
}) {
  return InstallConfig(
    features: features ?? this.features,
    skills: skills ?? this.skills,
    agents: agents ?? this.agents,
    overwrite: overwrite ?? this.overwrite,
    skillsPath: skillsPath ?? this.skillsPath,
  );
}