Image.from constructor

Image.from(
  1. Image other
)

Create a copy of the image other.

Implementation

Image.from(Image other)
    : width = other.width,
      height = other.height,
      xOffset = other.xOffset,
      yOffset = other.yOffset,
      duration = other.duration,
      disposeMethod = other.disposeMethod,
      blendMethod = other.blendMethod,
      channels = other.channels,
      data = other.data.sublist(0),
      exif = ExifData.from(other.exif),
      iccProfile = other.iccProfile {
  if (other.textData != null) {
    textData = Map<String,String>.from(other.textData!);
  }
}