RobotoffAPIClient class

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

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

Static Methods

getProductInsights(String barcode, {ServerType? serverType, UriHelper uriHelper = uriHelperRobotoffProd}) Future<InsightsResult>
getProductQuestions(String barcode, OpenFoodFactsLanguage language, {User? user, int? count, ServerType? serverType, UriHelper uriHelper = uriHelperRobotoffProd, List<InsightType>? insightTypes}) Future<RobotoffQuestionResult>
getQuestions(OpenFoodFactsLanguage language, {User? user, int? count, int? page, List<InsightType>? insightTypes, Iterable<OpenFoodFactsCountry>? countries, List<String>? brands, RobotoffQuestionOrder? questionOrder, ServerType? serverType, String? valueTag, UriHelper uriHelper = uriHelperRobotoffProd}) Future<RobotoffQuestionResult>
cf. https://openfoodfacts.github.io/robotoff/references/api/#tag/Questions/paths/~1questions/get
getRandomInsights({InsightType? type, Iterable<OpenFoodFactsCountry>? countries, String? valueTag, ServerType? serverType, int? count, UriHelper uriHelper = uriHelperRobotoffProd}) Future<InsightsResult>
postInsightAnnotation(String? insightId, InsightAnnotation annotation, {String? deviceId, bool update = true, UriHelper uriHelper = uriHelperRobotoffProd}) Future<Status>