buttonCheckedChanges

Create a Flow of material button checked state change events on the MaterialButtonToggleGroup instance.

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

Example of usage:

materialButtonToggleGroup.buttonCheckedChanges()
.onEach { event ->
// handle button checked event
}
.launchIn(uiScope)