package Ġbr . com . cross life . profile . view model Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġbr . com . cross life . commons . extensions . notify Ċ import Ġbr . com . cross life . commons . extensions . view model . ViewModel Extensions Ċ import Ġbr . com . cross life . domain . model . Detail Profile Ċ import Ġbr . com . cross life . domain . model . Result Ċ import Ġbr . com . cross life . domain . repository . UserRepository Ċ import Ġdagger . h ilt . android . lifecycle . H ilt ViewModel Ċ import Ġkotlinx . coroutines . flow . Mutable State Flow Ċ import Ġkotlinx . coroutines . flow . State Flow Ċ import Ġjavax . inject . Inject Ċ Ċ @ H ilt ViewModel Ċ class ĠDetail Profile ViewModel Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġuser Repository : ĠUser Repository , Ċ ) Ġ: ĠViewModel (), ĠViewModel Extensions Ġ{ ĊĊĠĠĠ Ġval Ġprofile State : ĠState Flow < Result < Detail Profile >> Ġ= ĠMutable State Flow ( Result . Initial ) ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġget Detail Profile () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Detail Profile () Ġ{ ĊĠĠĠĠĠĠĠ Ġuser Repository . fetch Detail Profile () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. notify ( viewModel Scope , Ġprofile State ()) ĊĠĠĠ Ġ} Ċ } Ċ