endIconClicks

fun TextInputLayout.endIconClicks(): Flow<Unit>

Create a Flow of clicked events on the TextInputLayout instance's end icon.

Note: Created flow keeps a strong reference to the TextInputLayout instance until the coroutine that launched the flow collector is cancelled.

Example of usage:

textInputLayout.endIconClicks()
.onEach {
// handle end icon clicked
}
.launchIn(uiScope)