package Ġcom . fir er ocks . what the weather . ui . weather . future . list Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . fir er ocks . what the weather . data . provider . Unit Provider Ċ import Ġcom . fir er ocks . what the weather . data . repository . Forecast Repository Ċ Ċ class ĠFuture List Weather ViewModel Factory ( ĊĠĠĠ Ġprivate Ġval Ġforecast Repository : ĠFore cast Repository , ĊĠĠĠ Ġprivate Ġval Ġunit Provider : ĠUnit Provider Ċ ) Ġ: ĠViewModel Provider . New Instance Factory () Ġ{ ĊĊĠĠĠ Ġ@ Suppress (" UN CHECK ED _ CAST ") ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel ?> Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠFuture List Weather ViewModel ( forecast Repository , Ġunit Provider ) Ġas ĠT ĊĠĠĠ Ġ} Ċ }