Android, Jetpack Compose, Android App Development, Mobile App Development, Programming.
destination needs to know how to serialize and deserialize this custom method. It comes with a special NavType abstract class, which we need to inherit in the following manner: val ScreenInfoNavType = object : NavType<ScreenInfo>(isNullableAllowed = false) { override fun get(bundle: Bundle, key: