notNull
Validates that the optional value is not null
.
rules<String?> {
notNull { "must be not null" } then {
minLength(3) { "must be at least 3 characters" }
}
}
@param message The message to return when the value is `null`.
@return The rule chainer to chain the non-optional rules.
Content copied to clipboard