copyWith method
LoaderOptions
copyWith({
- bool? validate,
- bool? resolveRefs,
- bool? loadDependencies,
- int? maxDepth,
- String? basePath,
- ContentResolver? contentResolver,
- DependencyResolver? dependencyResolver,
- bool? cache,
- bool? allowMissingOptional,
Create a copy with modifications.
Implementation
LoaderOptions copyWith({
bool? validate,
bool? resolveRefs,
bool? loadDependencies,
int? maxDepth,
String? basePath,
ContentResolver? contentResolver,
DependencyResolver? dependencyResolver,
bool? cache,
bool? allowMissingOptional,
}) {
return LoaderOptions(
validate: validate ?? this.validate,
resolveRefs: resolveRefs ?? this.resolveRefs,
loadDependencies: loadDependencies ?? this.loadDependencies,
maxDepth: maxDepth ?? this.maxDepth,
basePath: basePath ?? this.basePath,
contentResolver: contentResolver ?? this.contentResolver,
dependencyResolver: dependencyResolver ?? this.dependencyResolver,
cache: cache ?? this.cache,
allowMissingOptional: allowMissingOptional ?? this.allowMissingOptional,
);
}