ImageInfo constructor

ImageInfo({
  1. required Image image,
  2. double scale = 1.0,
  3. String? debugLabel,
})

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,
    );
  }
}