stopCameraStream static method

Future<void> stopCameraStream()

Implementation

static Future<void> stopCameraStream() async {
  try {
    await _imageStreamSubscription?.cancel();
    _imageStreamSubscription = null;

    await _channel.invokeMethod<void>('stopCameraStream');
  } on PlatformException catch (e) {
    throw BodyDetectionException(e.code, e.message);
  }
}