UI element states class MyValueState( private val countRepository: CountRepository, initial: Int, ) { companion object { fun saver( repository: CountRepository, ): Saver<MyValueState, Int> = Saver( save = { state -> state.count }, restore = { value -> MyValueState(repository, value) }, ) } } 36 Shibuya.apk #42