CantEatViewModel

class CantEatViewModel(cantEatRepository: CantEatRepository) : ViewModel

ViewModel for managing CantEat data.

Constructors

Link copied to clipboard
constructor(cantEatRepository: CantEatRepository)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
lateinit var uiListState: StateFlow<CantEatListState>

Functions

Link copied to clipboard
Link copied to clipboard
fun deleteCantEat(cantEat: CantEat)

Deletes a CantEat item from the repository.

Link copied to clipboard
fun refresh()

Refreshes the list of CantEat items from the repository.

Link copied to clipboard
fun saveCantEat(cantEat: CantEat)

Saves a CantEat item to the repository.