cameraResolution property

Size? cameraResolution
final

The desired resolution for the camera.

When this value is provided, the camera will try to match this resolution, or fallback to the closest available resolution. When this is null, Android defaults to a resolution of 640x480.

Bear in mind that changing the resolution has an effect on the aspect ratio.

When the camera orientation changes, the resolution will be flipped to match the new dimensions of the display.

Currently only supported on Android.

Implementation

final Size? cameraResolution;