package Ġcom . w uh ao 0 2 8 . poke pedia . view models Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . w uh ao 0 2 8 . poke pedia . data . Generation Repository Ċ Ċ class ĠGeneration List ViewModel Factory ( ĊĠĠĠ Ġprivate Ġval Ġrepository : ĠGeneration Repository Ċ ) Ġ: ĠViewModel Provider . New Instance Factory () Ġ{ ĊĊĠĠĠ Ġ@ Suppress (" UN CHECK ED _ CAST ") ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel > Ġcreate ( model Class : ĠClass < T >) Ġ= ĊĠĠĠĠĠĠĠ ĠGeneration List ViewModel ( repository ) Ġas ĠT Ċ } Ċ