Image class

Represents an image associated with a product.

Contains the image URL, dimensions, and a flag indicating if it's a catalog image.

Implementers

Constructors

Image({required String url, required int width, required int height, bool isCatalog = false})
Creates a new Image instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
The height of the image in pixels.
final
isCatalog bool
Indicates whether this is a catalog image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
The URL of the image.
final
width int
The width of the image in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited