inverted method
dynamic
inverted()
Returns a new PreviewSize with width and height inverted. Useful when the preview size is given in portrait mode but the camera is in landscape mode. Ex : for tablets, the preview size is given in landscape mode but the device is in portrait mode.
Implementation
inverted() => PreviewSize(width: height, height: width);