input

fun input(value: String? = null): Input

Return

Input.Valid if this is a non-empty string, or Input.Empty if the string is null or blank Use this when building an input for the first time to specify previous (pre-filled) values


@JvmName(name = "inputString")
fun String?.input(): Input

Creates a new Input from this string. Whether this will be an Input.Empty or Input.Valid depends on whether the value is a blank string.