Last active
July 27, 2019 12:28
-
-
Save CDRussell/c4b7d9343131eebd3f7b220f2fed5230 to your computer and use it in GitHub Desktop.
Using a data class to represent view state
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
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