$RecipesClient class
Everything related to recipes and their usage.
Constructors
- $RecipesClient($Client _rootClient)
-
Creates a new
DynamiteClient
for Recipes requests.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
$$import_Request(
{required Url $body}) → Request - Import a recipe using schema.org metadata from a website.
-
$$import_Serializer(
) → DynamiteSerializer< Recipe, void> - Builds a serializer to parse the response of $$import_Request.
-
$deleteRecipe_Request(
{required String id}) → Request - Delete an existing recipe.
-
$deleteRecipe_Serializer(
) → DynamiteSerializer< String, void> - Builds a serializer to parse the response of $deleteRecipe_Request.
-
$getImage_Request(
{required String id, GetImageSize? size}) → Request - Get the main image of a recipe. If no image is stored a fallback image is delivered.
-
$getImage_Serializer(
) → DynamiteSerializer< Uint8List, void> - Builds a serializer to parse the response of $getImage_Request.
-
$import(
{required Url $body}) → Future< DynamiteResponse< Recipe, void> > - Import a recipe using schema.org metadata from a website.
-
$listRecipes_Request(
) → Request - Get all recipes in the database.
-
$listRecipes_Serializer(
) → DynamiteSerializer< BuiltList< RecipeStub> , void> - Builds a serializer to parse the response of $listRecipes_Request.
-
$newRecipe_Request(
{required Recipe $body}) → Request - Create a new recipe.
-
$newRecipe_Serializer(
) → DynamiteSerializer< int, void> - Builds a serializer to parse the response of $newRecipe_Request.
-
$recipeDetails_Request(
{required String id}) → Request - Get a single recipe from the server.
-
$recipeDetails_Serializer(
) → DynamiteSerializer< Recipe, void> - Builds a serializer to parse the response of $recipeDetails_Request.
-
$search_Request(
{required String query}) → Request - Search for recipes for keywords, tags and categories with the named search string.
-
$search_Serializer(
) → DynamiteSerializer< BuiltList< RecipeStub> , void> - Builds a serializer to parse the response of $search_Request.
-
$updateRecipe_Request(
{required String id, required Recipe $body}) → Request - Update a recipe.
-
$updateRecipe_Serializer(
) → DynamiteSerializer< int, void> - Builds a serializer to parse the response of $updateRecipe_Request.
-
deleteRecipe(
{required String id}) → Future< DynamiteResponse< String, void> > - Delete an existing recipe.
-
getImage(
{required String id, GetImageSize? size}) → Future< DynamiteResponse< Uint8List, void> > - Get the main image of a recipe. If no image is stored a fallback image is delivered.
-
listRecipes(
) → Future< DynamiteResponse< BuiltList< >RecipeStub> , void> - Get all recipes in the database.
-
newRecipe(
{required Recipe $body}) → Future< DynamiteResponse< int, void> > - Create a new recipe.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recipeDetails(
{required String id}) → Future< DynamiteResponse< Recipe, void> > - Get a single recipe from the server.
-
search(
{required String query}) → Future< DynamiteResponse< BuiltList< >RecipeStub> , void> - Search for recipes for keywords, tags and categories with the named search string.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateRecipe(
{required String id, required Recipe $body}) → Future< DynamiteResponse< int, void> > - Update a recipe.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited