minLength
Validates that the CharSequence length is at least limit characters.
Usage:
rules<CharSequence> {
minLength(3) { "must be at least 3 characters" }
}
Content copied to clipboard
Parameters
limit
The minimum number of characters the CharSequence must have.
message
The message to return when the test fails.
Validates that the string length is at least limit characters.
Usage:
rules<String> {
minLength(3) { "must be at least 3 characters" }
}
Content copied to clipboard
Parameters
limit
The minimum number of characters the string must have.
message
The message to return when the test fails.