copyWith method

PicositeConfig copyWith({
  1. String? sitePath,
  2. String? outputPath,
  3. String? includesPath,
  4. String? assetsPath,
  5. String? templatesPath,
  6. bool? preview,
})

Implementation

PicositeConfig copyWith({
  String? sitePath,
  String? outputPath,
  String? includesPath,
  String? assetsPath,
  String? templatesPath,
  bool? preview,
}) {
  return PicositeConfig(
    sitePath: sitePath ?? this.sitePath,
    outputPath: outputPath ?? this.outputPath,
    includesPath: includesPath ?? this.includesPath,
    assetsPath: assetsPath ?? this.assetsPath,
    templatesPath: templatesPath ?? this.templatesPath,
    preview: preview ?? this.preview,
  );
}