setZeroShutterLagEnabled method
Enables or disables zero-shutter-lag capture for still image capture.
isZeroShutterLagSupported must be called first; only call this method
when it returns true.
When enabled, takePicture returns a recently buffered frame instead of waiting for a new capture, reducing shutter latency.
Implementation
Future<void> setZeroShutterLagEnabled(bool enabled) async {
_throwIfNotInitialized('setZeroShutterLagEnabled');
try {
await CameraPlatform.instance.setZeroShutterLagEnabled(_cameraId, enabled);
} on PlatformException catch (e) {
throw CameraException(e.code, e.message);
}
}