package Ġcom . ite o . android _ navigation . item _ details Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġcom . ite o . android _ navigation . Data Ċ import Ġcom . ite o . android _ navigation . list . Item Ċ import Ġcom . squareup . inject . ass isted . Ass isted Ċ import Ġcom . squareup . inject . ass isted . Ass isted Inject Ċ Ċ class ĠItem Details ViewModel Ġ@ Ass isted Inject Ġconstructor ( ĊĠĠĠ Ġ@ Ass isted ĠitemId : ĠInt Ċ ) Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġmutable ViewState Ġ= ĠMutable LiveData < Item >( Data . items Map [ itemId ]) ĊĠĠĠ Ġval Ġview State : ĠLive Data < Item > Ġ= Ġmutable ViewState ĊĊĠĠĠ Ġ@ Ass isted Inject . Factory ĊĠĠĠ Ġinterface ĠFactory Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġcreate ( itemId : ĠInt ): ĠItem Details ViewModel ĊĠĠĠ Ġ} Ċ } Ċ