getResultAsStateFlow

fun <T> NavBackStackEntry.getResultAsStateFlow(key: String, initialValue: T? = null): StateFlow<T?>