isNull
The validatable value must be null when this constraint is applied.
Code example:
val validate = Validator<Int?> { isNull() }
validate(null) // Success
validate(1234) // Failure (message: Must be null)
Content copied to clipboard
The validatable value must be null when this constraint is applied.
Code example:
val validate = Validator<Int?> { isNull() }
validate(null) // Success
validate(1234) // Failure (message: Must be null)