Manages the state and logic for the meal list view.
meals: [Meal] - Array of meals.viewState: ViewState<[Meal]> - The state of the view, including loading, success, and failure states.searchText: String - The current text in the search bar.filteredMeals: [Meal] - Array of meals filtered by the search text.
fetchMeals(): Fetches the list of meals from TheMealDB API.
Manages the state and logic for the meal detail view.
viewState: ViewState - The state of the view, including loading, success, and failure states.
fetchMealDetail(for id: String): Fetches detailed information about a meal by its ID.