ImageSizeInfo constructor

const ImageSizeInfo({
  1. String? source,
  2. required Size displaySize,
  3. required Size imageSize,
})

Creates an object to track the backing size of a dart:ui.Image compared to its display size on a Canvas.

This class is used by the framework when it paints an image to a canvas to report to dart:developer's postEvent, as well as to the debugOnPaintImage callback if it is set.

Implementation

const ImageSizeInfo({this.source, required this.displaySize, required this.imageSize});