copyWith method
Creates a copy of the current ImageInfos instance with optional updated values.
Implementation
ImageInfos copyWith({
Size? rawSize,
Size? renderedSize,
Size? cropRectSize,
double? pixelRatio,
bool? isRotated,
}) {
return ImageInfos(
rawSize: rawSize ?? this.rawSize,
renderedSize: renderedSize ?? this.renderedSize,
cropRectSize: cropRectSize ?? this.cropRectSize,
pixelRatio: pixelRatio ?? this.pixelRatio,
isRotated: isRotated ?? this.isRotated,
);
}