title: Get last item emited by a Flow and dont receive updates
body: <p>What is the best way to obtain the last element emitted by a flow without receiving updates.</p>
  <p><strong>Question:</strong>
  I use a flow to observe changes in certain shared preferences, but sometimes I want to know the current value of that preference. I always use two functions, one to observe the values in a flow and the other to capture the data directly, is there any way to archive the same behavior with just the observer function?</p>
  <pre><code>suspend fun getBreadcrumb(): Breadcrumb =
          withContext(Dispatchers.IO) context@ {
              ...
          }
  
  fun observeBreadcrumb(): Flow&lt;Breadcrumb&gt; {
          ....
      }
  </code></pre>