NutritionService class

Constructors

NutritionService({required ApetitoProductApiClientContext context})

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

getNutritionById(String id) Future<Nutrition>
Gets the nutrition that matches an id.id:
getNutritions() Future<List<Nutrition>>
Gets all the nutritions.
getProductNutritionsByNutritionId(String id) Future<List<ProductNutrition>>
Gets all the product nutrition information of the nutrition that matches an id.
getProductsByNutritionId(String id) Future<List<Product>>
Gets all the products of the nutrition that matches an id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited