Skip to content

Instantly share code, notes, and snippets.

@sergenes
Last active August 3, 2021 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergenes/40b90b4cf7cf3b3dd7a919c469f8b732 to your computer and use it in GitHub Desktop.
Save sergenes/40b90b4cf7cf3b3dd7a919c469f8b732 to your computer and use it in GitHub Desktop.
Code2 FSM Sealed Base class
sealed class ListScreenState(
val back: ListScreenState? = Idle
){
open val editButtonTitle = "Edit"
open val isAddButtonVisible = true
open val isEditNameMode = false
open val isTableVisible= true
object Idle : ListScreenState()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment