beforeTextChanges

Create a InitialValueFlow of before text change events on the TextView instance.

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

Example of usage:

textView.beforeTextChanges()
.onEach { event ->
// handle text view before text change event
}
.launchIn(uiScope)