package Ġcom . example . clean _ arch . presentation . det ial Ċ Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġcom . alias adi . clean . presentation . util . Dispatch ers Provider Ċ import Ġcom . example . clean _ arch . domain . model . Movie Ċ import Ġcom . example . clean _ arch . presentation . base . Base ViewModel Ċ import Ġcom . example . clean _ arch . presentation . util . Event Ċ Ċ class ĠDetail ViewModel ( ĊĠĠĠ Ġprivate Ġval Ġmovie : ĠMovie ?, ĊĠĠĠ Ġprivate Ġval Ġdispatch ers : ĠDispatch ers Provider ) Ġ: ĠBase ViewModel ( dispatch ers ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġmovie LiveData : ĠMutable LiveData < Event < Movie >> Ġ= ĠMutable LiveData () ĊĊĠĠĠ Ġfun Ġget Movie () Ġ{ ĊĠĠĠĠĠĠĠ Ġmovie ?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmovie LiveData . post Value ( Event ( it )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Movie LiveData () Ġ: ĠMutable LiveData < Event < Movie >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġmovie LiveData ĊĠĠĠ Ġ} Ċ }