deinitChangeStateWithRepo

val deinitChangeStateWithRepo: suspend (State, ColdStateFlowRepo<State>) -> suspend () -> State?

Parameters

deinitChangeStateWithRepo

method called when the repo transitions from being subscribed to to no subscriptions. Contains the last known State and provides a reference to this ColdStateFlowRepo, and allows to transition into a deinitialized state.