Image constructor

Image({
  1. required String url,
  2. required int width,
  3. required int height,
  4. bool isCatalog = false,
})

Creates a new Image instance.

url is the URL of the image. width is the width of the image in pixels. height is the height of the image in pixels. isCatalog indicates whether this is a catalog image.

Implementation

Image({
  required this.url,
  required this.width,
  required this.height,
  this.isCatalog = false,
});