smoothZoomTo method
Smoothly transition the zoom value for a device.
This must be >= minZoom and <= maxZoom.
This value is a multiplier. For example, a value of 2.0 doubles the size of an image’s subject (and halves the field of view). Allowed values typically range from 1.0 (full field of view) to the value of maxZoom.
smoothZoomSupported should be called before this.
Implementation
@override
Future<void> smoothZoomTo(double value) {
verifyInitialized();
verifyNotDisposed();
device.device.lockForConfiguration();
device.device.rampToVideoZoomFactor(value, 1.0);
return device.device.unlockForConfiguration();
}