copyWith method
Returns a copy of this configuration with the specified fields updated.
Implementation
AssetConfig copyWith({
String? projectName,
String? pubspecDir,
String? outputDir,
String? assetsDir,
String? flavorDir,
bool? createLibraryFile,
String? flavor,
}) {
return AssetConfig(
projectName: projectName ?? this.projectName,
pubspecDir: pubspecDir ?? this.pubspecDir,
outputDir: outputDir ?? this.outputDir,
assetsDir: assetsDir ?? this.assetsDir,
flavorDir: flavorDir ?? this.flavorDir,
createLibraryFile: createLibraryFile ?? this.createLibraryFile,
flavor: flavor ?? this.flavor,
);
}