package Ġio . v ict oral ber tos . k dirty android . presentation . home . users Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġandroidx . paging . Pager Ċ import Ġandroidx . paging . Paging Config Ċ import Ġandroidx . paging . Paging Data Ċ import Ġandroidx . paging . cached In Ċ import Ġdagger . h ilt . android . lifecycle . H ilt ViewModel Ċ import Ġio . v ict oral ber tos . k dirty android . entities . User Ċ import Ġio . v ict oral ber tos . k dirty android . paging . Users Paging Source Ċ import Ġio . v ict oral ber tos . k dirty android . repository . UserRepository Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġjavax . inject . Inject Ċ Ċ @ H ilt ViewModel Ċ class ĠUsers ViewModel Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġuser Repository : ĠUser Repository Ċ ) Ġ: ĠViewModel () Ġ{ ĊĠĠĠ Ġval Ġpaging Data : ĠFlow < Paging Data < User >> Ġ= ĠP ager ( Paging Config ( pageSize Ġ= Ġ 2 0 )) Ġ{ ĠUsers Paging Source ( user Repository ) Ġ} ĊĠĠĠĠĠĠĠ Ġ. flow ĊĠĠĠĠĠĠĠ Ġ. cached In ( viewModel Scope ) Ċ } Ċ