title: How can we get entire object list passes to the PagingDataAdapter while using Paging library 3.0?
body: <p>I am new to the paging library 3.0, I need to paginate data only from the local database.
  Initially, I fetched PagingSource&lt;Int, MessageDisplayModel&gt; from the database and use it as flow.</p>
  <pre><code>fun getChatMessages(chatWrapper: ChatWrapper): Flow&lt;PagingData&lt;MessageDisplayModel&gt;&gt; {
      return Pager(
              config = PagingConfig(pageSize = 15,
                      maxSize = 50,
                      enablePlaceholders = true)
      ) {
          xmppChatManager.getChatMessages(chatWrapper)
      }.flow
  }
  </code></pre>
  <p>Then after PagingData is passing to the adapter through submitData() method.</p>
  <pre><code>lifecycleScope.launch {
          @OptIn(ExperimentalCoroutinesApi::class)
          mViewModel.getChatMessages(chatWrapper).collectLatest {
              adapter.submitData(it) }
      }
  </code></pre>
  <p>Now, my concern is how can we get the actual list of MessageDisplayModel from PagingData which I pass to the adapter?</p>