ImageItem constructor
ImageItem([
- dynamic img,
- Size? viewportSize
Creates an ImageItem instance.
Implementation
ImageItem([dynamic img, Size? viewportSize]) {
if (img != null) load(img, viewportSize!);
}