Last active
August 3, 2021 19:33
-
-
Save sergenes/3606ccc603e5ac62095af534be8ca0fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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