setResolution method

  1. @override
Future<bool> setResolution(
  1. int width,
  2. int height
)
override

Sets the capture resolution in pixels; the platform negotiates the closest supported size with the device.

Implementation

@override
Future<bool> setResolution(int width, int height) async {
  final bool success =
      await methodChannel.invokeMethod('setResolution', [width, height]);
  return success;
}