anchor.diff:          });
         }
       } catch (e) {
  -      print('_handleBarcodeSubmission: An error occurred.');
         this.setState(() {
           successfulSubmission = false;
           didError = true;
  
positive.code:             }
            }
          } else {
            print('validToken: false, error');
            this.setState(() {
              successfulSubmission = false;
              didError = true;
  
negative.code:           Provider.of<UserDataProvider>(context, listen: false).isLoggedIn;
        var validToken = false;
  
        if (isLoggedIn) {
          if (tokenExpired) {
            if (await _userDataProvider.silentLogin()) {
              validToken = true;
            }
          } else {
            validToken = true;
          }
  
          if (validToken) {
            var results = await _barcodeService.uploadResults({
              "Content-Type": "application/json",
              'Authorization':
  