pausePreview method
Pause the active preview on the current frame for the selected camera.
Implementation
@override
Future<void> pausePreview(int cameraId) async {
try {
getCamera(cameraId).pause();
} on web.DOMException catch (e) {
throw PlatformException(code: e.name, message: e.message);
}
}