stopImageStream method

Future<void> stopImageStream()

Stops the image stream from the camera.

Implementation

Future<void> stopImageStream() async {
  _isStreamingImage = false;
  _streamImageTimer?.cancel();
  _streamImageTimer = null;
  await cameraController?.stopImageStream();
  log("successfully stopImageStream");
}