Skip to content

Instantly share code, notes, and snippets.

@uteke
Last active September 1, 2023 11:34
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 uteke/4f9def19995cde20f902216a42a51ce8 to your computer and use it in GitHub Desktop.
Save uteke/4f9def19995cde20f902216a42a51ce8 to your computer and use it in GitHub Desktop.
Flat view state
data class ViewState(
val isLoaderVisible: Boolean = false,
val isEmptyVisible: Boolean = false,
val isUserListVisible: Boolean = false,
val users: List<UserState> = emptyList(),
val isErrorVisible: Boolean = false,
val errorMessage: String = "",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment