ImageInfo constructor

const ImageInfo({@required Image image, double scale: 1.0 })

Creates an ImageInfo object for the given image and scale.

Both the image and the scale must not be null.

Implementation

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