copyWith method

ReviewProjectConfig copyWith({
  1. String? reviewDirectoryName,
  2. String? cliResolveCommand,
  3. String? defaultSite,
  4. List<String>? allowedSites,
  5. String? contentRoot,
  6. List<String>? sourceRoots,
  7. Map<String, ReviewSiteConfig>? sites,
})

Creates a copy of this configuration with selected fields overridden.

Implementation

ReviewProjectConfig copyWith({
  String? reviewDirectoryName,
  String? cliResolveCommand,
  String? defaultSite,
  List<String>? allowedSites,
  String? contentRoot,
  List<String>? sourceRoots,
  Map<String, ReviewSiteConfig>? sites,
}) => ReviewProjectConfig(
  reviewDirectoryName: reviewDirectoryName ?? this.reviewDirectoryName,
  cliResolveCommand: cliResolveCommand ?? this.cliResolveCommand,
  defaultSite: defaultSite ?? this.defaultSite,
  allowedSites: allowedSites ?? this.allowedSites,
  contentRoot: contentRoot ?? this.contentRoot,
  sourceRoots: sourceRoots ?? this.sourceRoots,
  sites: sites ?? this.sites,
);