bottomSheetSlides

Create a Flow of bottom sheet slided events on the View instance with a BottomSheetBehavior where the value emitted is the slide offset.

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

Example of usage:

view.bottomSheetSlides()
.onEach { state ->
// handle state
}
.launchIn(uiScope)