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