AccountViewModel2

class AccountViewModel2(val defaultAccount: DataStoreHelper.Account, initialState: AccountState) : ViewModel, StateContainer<AccountState> , ActionHandler<AccountAction> (source)

Constructors

Link copied to clipboard
constructor(defaultAccount: DataStoreHelper.Account, initialState: AccountState)

Properties

Link copied to clipboard
Link copied to clipboard
open override val state: StateFlow<AccountState>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
open override fun onAction(action: AccountAction)
Link copied to clipboard
@EmptySuper
protected open fun onCleared()
Link copied to clipboard
fun updateAccount(updater: (SearchableData<Int, DataStoreHelper.Account>) -> SearchableData<Int, DataStoreHelper.Account>)
Link copied to clipboard
open override fun updateState(reducer: AccountState.() -> AccountState)