ImageInfo constructor Null safety

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

Creates an ImageInfo object for the given image and scale.

Both the image and the scale must not be null.

The debugLabel may be used to identify the source of this image.

Implementation

const ImageInfo({ required this.image, this.scale = 1.0, this.debugLabel })
  : assert(image != null),
    assert(scale != null);