package Ġcom . ji woo . cho i . nan um car . ui . activities . detail Ċ Ċ import Ġandroid . arch . lifecycle . ViewModel Ċ import Ġandroid . arch . lifecycle . ViewModel Provider Ċ import Ġcom . ji woo . cho i . nan um car . di . driver . Data Driver Ċ Ċ class ĠDetail ViewModel Factory ( val Ġdriver : ĠData Driver ) Ġ: ĠViewModel Provider . Factory { ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel ?> Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠDetail ViewModel ( driver ) Ġas ĠT ĊĠĠĠ Ġ} Ċ }