Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created March 4, 2024 08:12
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 skydoves/13799656077019705ec3c7bc67299313 to your computer and use it in GitHub Desktop.
Save skydoves/13799656077019705ec3c7bc67299313 to your computer and use it in GitHub Desktop.
state_mutablestate
@Stable
interface State<out T> {
val value: T
}
@Stable
interface MutableState<T> : State<T> {
override var value: T
operator fun component1(): T
operator fun component2(): (T) -> Unit
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment