withContext method
Shortcut to clone with updated context.
Equivalent to clone(context: ...), but more fluent.
context— The new context to use for the returned clone.
Example:
final spanishValidator = baseValidator.withContext(spanishContext);
Implementation
@override
IpNode<T> withContext(ValidationContext context) {
return clone(context: context);
}