Created
June 22, 2021 09:16
-
-
Save abos3d/30fdbb8fc008f6df7b267baf676d863f to your computer and use it in GitHub Desktop.
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
package com.cleanarchitectkotlinflowhiltsimplestway.presentation | |
sealed class State<out T> { | |
object LoadingState : State<Nothing>() | |
data class ErrorState(var exception: Throwable) : State<Nothing>() | |
data class DataState<T>(var data: T) : State<T>() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment