FormValidator

Functions

Link copied to clipboard
fun isNotEmpty(name: String = "Field", errorIsEmpty: String = " must be not empty"): (value: String) -> String
Link copied to clipboard
fun <T : Number?> isNumberInRange(min: T, max: T, errorTooSmall: String = "Number is too small", errorTooBig: String = "Number is too big", errorInvalid: String = "Invalid Number"): (value: T?) -> String