package Ġdev . king bond . notify . view model Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġdev . king bond . notify . repository . Repository Class Ċ Ċ class ĠViewModel Factory ( val Ġrepo : Repository Class ): ViewModel Provider . Factory Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel ?> Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠViewModel Class ( repo ) Ġas ĠT ĊĠĠĠ Ġ} Ċ Ċ }