maxLength

val maxLength: Int? = null(source)

When the instance value is a string, this defines the maximum length of the string.