Image constructor Null safety

Image(
  1. int width,
  2. int height,
  3. {Channels channels = Channels.rgba,
  4. ExifData? exif,
  5. ICCProfileData? iccp}
)

Create an image with the given dimensions and format.

Implementation

Image(this.width, this.height,
    {this.channels = Channels.rgba, ExifData? exif, ICCProfileData? iccp})
    : data = Uint32List(width * height),
      exif = ExifData.from(exif),
      iccProfile = iccp;