setResolution method
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;
}