I have this:
val navigateToMainFragmentEvent: StateFlow>> if (navigateToMainFragmentEvent.collectAsState().value is S