withContext method

  1. @override
IpNode<T> withContext(
  1. ValidationContext context
)
override

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);
}