Skip to content

Instantly share code, notes, and snippets.

@CDRussell
Last active July 27, 2019 12:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CDRussell/c4b7d9343131eebd3f7b220f2fed5230 to your computer and use it in GitHub Desktop.
Save CDRussell/c4b7d9343131eebd3f7b220f2fed5230 to your computer and use it in GitHub Desktop.
Using a data class to represent view state
data class ViewState(
val isLoading: Boolean = false,
val progress: Int = 0,
val omnibarText: String? = null,
val isEditing: Boolean = false,
val browserShowing: Boolean = false,
val showClearButton: Boolean = false,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment