Size constructor

const Size(
  1. int width,
  2. int height, {
  3. bool needRotate = false,
})

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,
});