ImageHelper class
Helper class related to product pictures
Constructors
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
-
getLocalizedProductImageUrl(
String barcode, ProductImage image, {ImageSize? imageSize, UriProductHelper uriHelper = uriHelperFoodProd}) → String -
Returns the
image
full url - for a specificimageSize
if needed. -
getProductImageFilename(
ProductImage image, {ImageSize? imageSize}) → String -
Returns the
image
filename - for a specificimageSize
if needed. -
getUploadedImageFilename(
int imageId, ImageSize imageSize) → String - Returns the filename of an uploaded image.
-
getUploadedImageUrl(
String barcode, int imageId, ImageSize imageSize, {UriProductHelper uriHelper = uriHelperFoodProd}) → String -
Returns the
image
full url for an uploaded ("raw") image.
Constants
- minimumHeight → const int
- Minimum accepted height for an uploaded image.
- minimumWidth → const int
- Minimum accepted width for an uploaded image.