UriProductHelper class
UriHelper specific for products (e.g. off, obf, opf, opff).
Constructors
Properties
- defaultAddUserAgentParameters → bool
-
finalinherited
- domain → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
finalinherited
- isTestMode → bool
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheme → String
-
finalinherited
- userInfoForPatch → String?
-
final
Methods
-
getHost(
String subdomain) → String -
getImageUrlBase(
) → String - Returns the product images folder (without trailing '/').
-
getPatchUri(
{required String path}) → Uri -
getPostUri(
{required String path}) → Uri -
inherited
-
getProductImageRootUrl(
String barcode) → String - Returns the web folder of the product images (without trailing '/')
-
getUri(
{required String path, Map< String, dynamic> ? queryParameters, bool? addUserAgentParameters, String? userInfo, String? forcedHost}) → Uri -
Returns a OFF uri with the OpenFoodAPIConfiguration specified settings
inherited
-
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
-
getBarcodeSubPath(
String barcode) → String - Returns the barcode sub-folder (without trailing '/').