Vgs Text Length Validator
class VgsTextLengthValidator(val lengths: IntArray, val errorMsg: String = ERROR_MESSAGE) : VgsTextFieldValidator
Validator that requires the value's length to match one of the allowed lengths.
Useful for fixed-length identifiers (e.g. arrayOf(9) for SSN, arrayOf(15, 16) for card numbers).
Parameters
lengths
the set of accepted character counts.
error Msg
message returned when the length is not in lengths.