Skip to content

Instantly share code, notes, and snippets.

@abos3d
Created June 22, 2021 09:16
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 abos3d/30fdbb8fc008f6df7b267baf676d863f to your computer and use it in GitHub Desktop.
Save abos3d/30fdbb8fc008f6df7b267baf676d863f to your computer and use it in GitHub Desktop.
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