EditText():hasDefaultValue()
Comprueba si el campo de texto se creó con un valor predeterminado.
Firma
hasDefaultValue(): boolean
Devuelve
boolean - true cuando se pasó un valor predeterminado a EditText(id, hint, defaultValue).
Ejemplo
local field = EditText(2, "Search", "cats")
if field:hasDefaultValue() then
toast("Starts with: " .. field:getDefaultValue())
end