title: Populate and emit StateFlow List
body: <p>I want to use StateFlow. But for now, I don't find any lecture which could help me.</p>
  <p>I'm facing an issue :
  To start, I have a singleton which hold a list of String, I want something &quot;easy&quot; to understand even if it isn't the goal purpose for now. The purpose is to populate and emit the list with strings (it will be a complex object later).</p>
  <pre><code>class CustomStateFlow() {
      private val _custom = MutableStateFlow(emptyList&lt;String&gt;())
      val custom: StateFlow&lt;List&lt;String&gt;&gt; = _custom
  
      fun addString(string: String) {
          val tempList = _custom.value.toMutableList()
          tempList.add(string)
          _custom.value = tempList
  }
  </code></pre>
  <p>This seems to work, but I don't like the temp list... without, I can't trigger the &quot;collect&quot; of custom in my fragment.</p>
  <p>Is there a way to achieve this without using a tempList ?</p>
  <p>Thanks you</p>