Size constructor
Size is a class for image size.
The size contains width and height.
If the needRotate is true, the width and height need to be swapped when using.
Such as, orientation value of the jpeg format is 5, 6, 7, 8
.
Implementation
const Size(
this.width,
this.height, {
this.needRotate = false,
});