Skip to content

Instantly share code, notes, and snippets.

@dilrajsingh1997
Created Nov 20, 2021
Embed
What would you like to do?
class NavigationGraph(private val navHostController: NavHostController) {
val openUserPage: (String, Boolean) -> Unit = { userId, isLoggedIn ->
navHostController.navigate("userPage?" +
"userId=$userId," +
"isLoggedIn=$isLoggedIn"
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment