zoomIn method
Zooms in the camera view.
Increases the zoom level by a fixed amount. The actual zoom factor depends on the device's camera capabilities.
Example:
// Zoom in
await controller.zoomIn();
Implementation
Future<void> zoomIn() async {
if (_methodChannel == null) {
logInfo(
'YOLOViewController: Warning - Cannot zoom in, view not yet created',
);
return;
}
try {
await _methodChannel!.invokeMethod('zoomIn');
logInfo('YOLOViewController: Zoomed in');
} catch (e) {
logInfo('YOLOViewController: Error zooming in: $e');
}
}