NutritionAdvisor class

A singleton class that provides access to the Nutrition AI Advisor API.

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

fetchIngredients(PassioAdvisorResponse response) Future<PassioResult<PassioAdvisorResponse>>
Fetches ingredients from a PassioAdvisorResponse.
initConversation() Future<PassioResult>
Initializes a conversation with the Nutrition AI Advisor.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendImage(Uint8List bytes) Future<PassioResult<PassioAdvisorResponse>>
Sends an image to the Nutrition AI Advisor.
sendMessage(String message) Future<PassioResult<PassioAdvisorResponse>>
Sends a message to the Nutrition AI Advisor.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance NutritionAdvisor
Gets the singleton instance of NutritionAdvisor.
no setter