copyWith method

LoaderOptions copyWith({
  1. bool? validate,
  2. bool? resolveRefs,
  3. bool? loadDependencies,
  4. int? maxDepth,
  5. String? basePath,
  6. ContentResolver? contentResolver,
  7. DependencyResolver? dependencyResolver,
  8. bool? cache,
  9. 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,
  );
}