ratingChangeEvents

Create a InitialValueFlow of rating change events on the RatingBar instance.

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

Example of usage:

ratingBar.ratingChangeEvents()
.onEach { event ->
// handle rating change event
}
.launchIn(uiScope)