copyWith method

GenConfig copyWith({
  1. String? sourceDir,
  2. String? outputPrefix,
  3. int? targetSizeKB,
  4. bool? removeComments,
  5. String? projectTypeName,
  6. List<String>? extensions,
  7. List<String>? ignorePatterns,
  8. List<String>? ignoreFiles,
  9. List<String>? extraRootFiles,
  10. String? outputFormatName,
  11. bool? verbose,
})

Create a copy with modified values

Implementation

GenConfig copyWith({
  String? sourceDir,
  String? outputPrefix,
  int? targetSizeKB,
  bool? removeComments,
  String? projectTypeName,
  List<String>? extensions,
  List<String>? ignorePatterns,
  List<String>? ignoreFiles,
  List<String>? extraRootFiles,
  String? outputFormatName,
  bool? verbose,
}) {
  return GenConfig(
    sourceDir: sourceDir ?? this.sourceDir,
    outputPrefix: outputPrefix ?? this.outputPrefix,
    targetSizeKB: targetSizeKB ?? this.targetSizeKB,
    removeComments: removeComments ?? this.removeComments,
    projectTypeName: projectTypeName ?? this.projectTypeName,
    extensions: extensions ?? this.extensions,
    ignorePatterns: ignorePatterns ?? this.ignorePatterns,
    ignoreFiles: ignoreFiles ?? this.ignoreFiles,
    extraRootFiles: extraRootFiles ?? this.extraRootFiles,
    outputFormatName: outputFormatName ?? this.outputFormatName,
    verbose: verbose ?? this.verbose,
  );
}