startCapture method
Implementation
@override
Future<bool> startCapture({int? x, int? y, int? width, int? height, int fps = 15}) async {
Map<String, dynamic>? data;
if (x != null && y != null && width != null && height != null) {
data = {
'x': x,
'y': y,
'width': width,
'height': height,
};
}
return await methodChannel.invokeMethod('startCapture', data);
}