ProductImage class
The url to a specific product image. Categorized by content type, size and language
Constructors
- ProductImage.new({required ImageField field, ImageSize? size, OpenFoodFactsLanguage? language, String? url, int? rev, String? imgid, ImageAngle? angle, String? coordinatesImageSize, int? x1, int? y1, int? x2, int? y2})
Properties
- angle ↔ ImageAngle?
-
Image angle, compared to the uploaded image
getter/setter pair
- coordinatesImageSize ↔ String?
-
On what size are the coordinates (x1, ...)computed? 'full' or '400'
getter/setter pair
- field → ImageField
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imgid ↔ String?
-
Uploaded image id (probably an
int
)getter/setter pair - language → OpenFoodFactsLanguage?
-
final
- rev ↔ int?
-
Revision number
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → ImageSize?
-
final
- url ↔ String?
-
getter/setter pair
- x1 ↔ int?
-
Crop coordinate x1, compared to the uploaded image
getter/setter pair
- x2 ↔ int?
-
Crop coordinate x2, compared to the uploaded image
getter/setter pair
- y1 ↔ int?
-
Crop coordinate y1, compared to the uploaded image
getter/setter pair
- y2 ↔ int?
-
Crop coordinate y2, compared to the uploaded image
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited