Like the extension function, we can add extension property.
val EditText.trimmedValue: String get() = text.toString().trim()
Uses:
findViewById<EditText>(R.id.edit_text).trimmedValue
There was an error while loading. Please reload this page.