copyWith method

AssetConfig copyWith({
  1. String? projectName,
  2. String? pubspecDir,
  3. String? outputDir,
  4. String? assetsDir,
  5. String? flavorDir,
  6. bool? createLibraryFile,
  7. String? flavor,
})

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