# What to use as value in mutablestateflow(value)

**URL:** <https://discuss.kotlinlang.org/t/what-to-use-as-value-in-mutablestateflow-value/29575>\
**Category:** Uncategorized\
**Created:** [November 30, 2024, 6:33am UTC](https://discuss.kotlinlang.org/t/what-to-use-as-value-in-mutablestateflow-value/29575 "2024-11-30T06:33:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![knveraraju91](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@knveraraju91](https://discuss.kotlinlang.org/u/knveraraju91)\
**Post date:** [November 30, 2024, 6:33am UTC](https://discuss.kotlinlang.org/t/what-to-use-as-value-in-mutablestateflow-value/29575/1 "2024-11-30T06:33:10Z")

</div>

HI  
I am currnetly doing android jetpack compose course. In the code posted i see GameUiState is data class which is used as value in MutableStateFlow. I have been reading MutableStateFlow documentation I could not find what can be used as value. Please suggest any document that I can read to understand. Thank you

```auto
data class GameUiState(
   val currentScrambledWord: String = ""

import kotlinx.coroutines.flow.MutableStateFlow
private val _uiState = MutableStateFlow(GameUiState())

```

---

<div class="post-metadata">

**Author:** ![Skater901](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/skater901/32/10163_2.png) [@Skater901](https://discuss.kotlinlang.org/u/Skater901)\
**Post date:** [December 1, 2024, 6:06am UTC](https://discuss.kotlinlang.org/t/what-to-use-as-value-in-mutablestateflow-value/29575/2 "2024-12-01T06:06:57Z")

</div>

Do you mean what value you pass to a `MutableStateFlow`? Anything. Flows use generics, which means you can pass any kind of item to a Flow. Think of it like a List.
