copyWith method

ValidationContext copyWith({
  1. ICheckitErrors? errors,
  2. Warnings? warnings,
  3. ValidationResourcesBase? resources,
  4. CaseHandling? caseHandling,
  5. bool? usePermanentCache,
  6. bool? stopOnFirstError,
})

Implementation

ValidationContext copyWith({
  ICheckitErrors? errors,
  Warnings? warnings,
  ValidationResourcesBase? resources,
  CaseHandling? caseHandling,
  bool? usePermanentCache,
  bool? stopOnFirstError,
}) {
  return ValidationContext(
    errors: errors ?? this.errors,
    warnings: warnings ?? this.warnings,
    resources: resources ?? this.resources,
    caseHandling: caseHandling ?? this.caseHandling,
    usePermanentCache: usePermanentCache ?? this.usePermanentCache,
    stopOnFirstError: stopOnFirstError ?? this.stopOnFirstError,
  );
}