package Ġnet . marks he eh an . do om town deck builder . ui . view models Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ Ċ /** Ċ Ġ* ĠFactory Ġfor Ġcreating Ġa Ġ[ Card Viewer ViewModel ] Ġwith Ġa Ġconstructor Ġthat Ġtakes Ġa Ċ Ġ* Ġ[ Retrieve Pack Data Repository ]. Ċ Ġ*/ Ċ class ĠCard Viewer ViewModel Factory ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġrepository : ĠRetrieve Pack Data Repository Ċ ) Ġ: ĠViewModel Provider . New Instance Factory () Ġ{ ĊĊĠĠĠ Ġ@ Suppress (" UN CHECK ED _ CAST ") ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel > Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠCard Viewer ViewModel ( repository ) Ġas ĠT ĊĠĠĠ Ġ} Ċ }