package Ġcom . z iz oh anto . android . to buy . shopping _ list . presentation . products Ċ Ċ import Ġandroidx . h ilt . lifecycle . ViewModel Inject Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġcom . z iz oh anto . android . to buy . presentation . m vi . MV IP res enter Ċ import Ġcom . z iz oh anto . android . to buy . shopping _ list . presentation . products . m vi . Products View Intent Ċ import Ġcom . z iz oh anto . android . to buy . shopping _ list . presentation . products . m vi . Products ViewState Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġkotlinx . coroutines . flow . launch In Ċ Ċ class ĠProduct ViewModel Ġ@ ViewModel Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġproduct StateMachine : ĠProduct StateMachine Ċ ) Ġ: ĠViewModel (), ĠMV IP res enter < Products ViewState , ĠProducts View Intent > Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġview State : ĠFlow < Products ViewState > ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġproduct StateMachine . view State ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġproduct StateMachine . processor . launch In ( viewModel Scope ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġprocess Intent ( int ents : ĠFlow < Products View Intent >) Ġ{ ĊĠĠĠĠĠĠĠ Ġproduct StateMachine ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. process Intent s ( int ents ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. launch In ( viewModel Scope ) ĊĠĠĠ Ġ} Ċ }