notEmpty
Validates that the array is not empty.
Usage:
rules<Array<String>> {
notEmpty { "must be not empty" }
}
Content copied to clipboard
Parameters
message
The message to return when the test fails.
Validates that the collection is not empty.
Usage:
rules<Collection<String>> {
notEmpty { "must not be empty" }
}
Content copied to clipboard
Parameters
message
The message to return when the test fails.
Validates that the string value is not empty.
Usage:
rules<String> {
notEmpty { "must be not empty" }
}
Content copied to clipboard
Parameters
message
The message to return when the test fails.