Android, Jetpack Compose, Android App Development, Mobile App Development, Programming.
code for the mapper every time. class CustomNavType<T : Parcelable>( private val clazz: Class<T>, private val serializer: KSerializer<T>, ) : NavType<T>(isNullableAllowed = false) { override fun get(bundle: Bundle, key: String): T? = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {