title: Is there any way to pass a Flow into a Room DAO Query method?
body: <p>I'm working on implementing Room in an android app and I have a use case where I am receiving a Flow with the current user id for functionality similar to switching which logged in Google user to view a service as. I'd like to pass that flow into a @Query annotated method in my DAO to get user widgets so that if the currently selected user changes or the list of widgets stored changes, the output Flow&lt;List&gt; would change as well.</p>
  <p>Something like</p>
  <p>WidgetRepo.kt</p>
  <pre><code>val widgets: Flow&lt;List&lt;Widget&gt;&gt; = widgetDAO.getWidgetsByUser(currentUserID)
  </code></pre>
  <p>WidgetDao.kt</p>
  <pre><code>@Query(&quot;select * from widget where userID = :userID&quot;)
  fun getWidgetsByUser(userID: Flow&lt;Int&gt;): Flow&lt;List&lt;Widget&gt;&gt;
  </code></pre>