Skip to content

Instantly share code, notes, and snippets.

@sergenes
Last active Aug 3, 2021
Embed
What would you like to do?
fun done() { onAction(ListScreenActions.OnDone(state()))}
fun save(runBefore: () -> Unit) {
onAction(ListScreenActions.OnSave(state()), runBefore = runBefore)
}
fun backToPrevState() {
state().back?.let {
screenState.value = it
}
}
fun state(): ListScreenState = screenState.value
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment