condition

private val condition: () -> Boolean(source)

Parameters

condition

the pre-condition to apply to all Validators created by this DSL. If condition returns false during validation, then the output of the Validators is changed to null. The condition applies only to Validators constructed at this level of nesting of the DSL, and not, for example, to those already in validators at construction time