-
-
Save skydoves/876c368ea7c813d8d0993fc0521fd7c5 to your computer and use it in GitHub Desktop.
stable_ui_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
@Stable | |
interface UiState<T : Result<T>> { | |
val value: T? | |
val exception: Throwable? | |
val hasSuccess: Boolean | |
get() = exception == null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment