dispose method

void dispose()

Stops the camera and disposes the barcode stream.

Implementation

void dispose() {
  if (defaultTargetPlatform == TargetPlatform.iOS) stopCamera();
  _scanUpdateController.close();
}