All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.de.halfbit.componental.router.RestorableRoute.kt Maven / Gradle / Ivy

package de.halfbit.componental.router

import kotlinx.serialization.Serializable

@Serializable
public class RestorableRoute(
    public val id: Id,
    private var childState: ByteArray?,
) {
    public fun consumeChildState(): ByteArray? =
        childState.also { childState = null }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy