anchor.diff:        _isLoading = false;
         return true;
       } catch (e) {
  -      /// if the authorized fetch failed we know we have to refresh the
  -      /// token for this service
  -      if (e.toString().contains("401")) {
  -        if (await getNewToken()) {
  -          return await fetchData();
  -        }
  -      }
         _error = e.toString();
         _isLoading = false;
         return false;
  
positive.code:     _isLoading = true;
      try {
        /// fetch data
        arrivingEndpoint =
            "https://api-qa.ucsd.edu:8243/shuttles/v1.0.0/stops/$stopId/arrivals";
        String _response =
            await _networkHelper.authorizedFetch(arrivingEndpoint, headers);
  
        /// parse data
        final arrivingData = getArrivingShuttles(_response);
        _isLoading = false;
        return arrivingData;
      } catch (e) {
        /// if the authorized fetch failed we know we have to refresh the
        /// token for this service
  
        if (e.toString().contains("401")) {
          if (await getNewToken()) {
            return await getArrivingInformation(stopId);
          }
        }
  
        _error = e.toString();
        _isLoading = false;
      }
    }
  
    Future<bool> getNewToken() async {
      final String tokenEndpoint = "https://api-qa.ucsd.edu:8243/token";
      final Map<String, String> tokenHeaders = {
        "content-type": 'application/x-www-form-urlencoded',
        "Authorization":
            "Basic djJlNEpYa0NJUHZ5akFWT0VRXzRqZmZUdDkwYTp2emNBZGFzZWpmaWZiUDc2VUJjNDNNVDExclVh"
      };
      print("Getting new token");
      try {
        var response = await _networkHelper.authorizedPost(
            tokenEndpoint, tokenHeaders, "grant_type=client_credentials");
        headers["Authorization"] = "Bearer " + response["access_token"];
        return true;
      } catch (e) {
        _error = e.toString();
        return false;
      }
    }
  
    bool get isLoading => _isLoading;
  
    String get error => _error;
  
    DateTime get lastUpdated => _lastUpdated;
  }
  
negative.code: import 'package:campus_mobile_experimental/core/models/shuttle_arrival_model.dart';
  import 'package:campus_mobile_experimental/core/models/shuttle_stop_model.dart';
  import 'package:campus_mobile_experimental/core/services/networking.dart';
  