copyWith method
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,
);
}