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