setCameraResolution method

Future<void> setCameraResolution(
  1. int width,
  2. int height
)

Selects camera resolution.

Camera will capture frames in a format that is as close as possible to width x height.

width - Camera resolution width

height - Camera resolution height

Implementation

Future<void> setCameraResolution(int width, int height) async {
  await _channel.invokeMethod('Camera.setCameraResolution',
      <String, dynamic>{'width': width, 'height': height});
}