package Ġpe . dev p icon . android . mar vel hero es . presentation Ċ Ċ import Ġkotlinx . coroutines . Experimental Cor outines Api Ċ import Ġkotlinx . coroutines . Flow Preview Ċ import Ġpe . dev p icon . android . mar vel hero es . data . Repository Ċ import Ġpe . dev p icon . android . mar vel hero es . presentation . home . Main ViewModel Ċ import Ġpe . dev p icon . android . mar vel hero es . presentation . home . Main ViewState Mapper ĊĊ Ċ interface ĠViewModel Factory < out ĠT > Ġ{ ĊĠĠĠ Ġfun Ġcreate (): ĠT Ċ } Ċ Ċ @ Experimental Cor outines Api Ċ @ Flow Preview Ċ class ĠMain ViewModel Factory ( private Ġval Ġmain ViewModel Mapper : ĠMain ViewState Mapper , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġprivate Ġval Ġrepository : ĠRepository ) Ġ: ĠViewModel Factory < Main ViewModel > Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġcreate (): ĠMain ViewModel Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠMain ViewModel ( main ViewModel Mapper , Ġrepository ) ĊĠĠĠ Ġ} Ċ }