package Ġcom . net di ary . recipes . ui . recipes . details Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ Ċ import Ġcom . net di ary . data . Recipe Ċ Ċ class ĠRecipe Detail ViewModel Factory ( ĊĠĠĠ Ġprivate Ġval Ġapp : ĠApplication , ĊĠĠĠ Ġprivate Ġval Ġrecipe : ĠRecipe ? Ċ ) Ġ: ĠViewModel Provider . Factory Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel > Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRecipe Detail ViewModel ( app , Ġrecipe ) Ġas ĠT ĊĠĠĠ Ġ} Ċ } Ċ