= null) { printLog("Value of Barcode is $barcode"); _facilityDashboardBloc.add(ScanQRCode(barcode)); } } on PlatformException catch (e) { if (e.code == BarcodeScanner.CameraAccessDenied) { _opneSetting(); } else { printLog("Unknown error: $e"); } } on FormatException { print...