stopImageStream method
Stops the image stream from the camera.
Implementation
Future<void> stopImageStream() async {
if (_isStreamingImage) {
_isStreamingImage = false;
try {
await _cameraController?.stopImageStream();
log("successfully stop image stream");
} catch (e) {
log("failed stop image stream: $e");
}
} else {
log("no need stop image stream, stream image is not started yet");
}
}