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
-
buildUrl(
String? barcode, ProductImage image, {ImageSize? imageSize, QueryType? queryType}) → 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. -
getProductImageRootUrl(
String barcode, {QueryType? queryType}) → String - Returns the web folder of the product images (without trailing '/')
-
resize(
Image image, {int maxSize = MAX_IMAGE_SIZE}) → Image -
Returns a copy of the
image
with its bigger size GTEmaxsize
Constants
- MAX_IMAGE_SIZE → const int