UriHelper class

Helper class for constructing urls with the in the OpenFoodAPIConfiguration specified settings

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

getEventsUri({required String path, Map<String, dynamic>? queryParameters, QueryType? queryType}) Uri
Returns a OFF-Events uri with the in the OpenFoodAPIConfiguration specified settings
getFolksonomyUri({required String path, Map<String, dynamic>? queryParameters, QueryType? queryType}) Uri
Returns a OFF-Folksonomy uri with the in the OpenFoodAPIConfiguration specified settings
getPatchUri({required String path, QueryType? queryType}) Uri
getPostUri({required String path, QueryType? queryType}) Uri
getRobotoffUri({required String path, Map<String, dynamic>? queryParameters, QueryType? queryType}) Uri
Returns a OFF-Robotoff uri with the in the OpenFoodAPIConfiguration specified settings
getUri({required String path, Map<String, String>? queryParameters, QueryType? queryType, bool addUserAgentParameters = true, String? userInfo}) Uri
Returns a OFF uri with the OpenFoodAPIConfiguration specified settings
replaceSubdomain(Uri uri, {OpenFoodFactsLanguage? language, OpenFoodFactsCountry? country}) Uri
Replaces the subdomain of an URI with specific country and language.
replaceSubdomainWithCodes(Uri uri, {String? languageCode, String? countryCode}) Uri
Replaces the subdomain of an URI with specific country and language.