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