RecipeDetailViewModel

ViewModel for managing Recipe data.

Constructors

Link copied to clipboard
constructor(recipeRepository: RecipeRepository)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val recipe: StateFlow<Recipe?>
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun getRecipeDetail(recipeId: Long)

Fetches the details of a recipe by its ID.