ratingChanges

Create a InitialValueFlow of rating changes on the RatingBar instance where the value emitted is the current rating.

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.ratingChanges()
.onEach { rating ->
// handle rating
}
.launchIn(uiScope)