ImageInfo constructor
Creates an ImageInfo object for the given image
and scale
.
The debugLabel
may be used to identify the source of this image.
See details for disposing contract in the class description.
Implementation
ImageInfo({ required this.image, this.scale = 1.0, this.debugLabel }) {
if (kFlutterMemoryAllocationsEnabled) {
MemoryAllocations.instance.dispatchObjectCreated(
library: _flutterPaintingLibrary,
className: '$ImageInfo',
object: this,
);
}
}