copyWith method
ValidationContext
copyWith({
- ICheckitErrors? errors,
- Warnings? warnings,
- ValidationResourcesBase? resources,
- CaseHandling? caseHandling,
- bool? usePermanentCache,
- 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,
);
}