ImageItem constructor

ImageItem([
  1. dynamic img,
  2. Size? viewportSize
])

Creates an ImageItem instance.

Implementation

ImageItem([dynamic img, Size? viewportSize]) {
  if (img != null) load(img, viewportSize!);
}