package Ġboot camp . s nt . boot camp s ant and ert odo . features . list Todo . view model Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġboot camp . s nt . boot camp s ant and ert odo . data . repository . Todo Repository Ċ Ċ class ĠList Todos ViewModel Factory ( private Ġval Ġrepository : ĠTodo Repository ) ĊĠĠĠ Ġ: ĠViewModel Provider . New Instance Factory () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel ?> Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠList Todos ViewModel ( repository ) Ġas ĠT ĊĠĠĠ Ġ} Ċ }