anchor.diff:  Future<bool> get isFlutterGAEnabled async {
     bool enabled = false;
   
  -  final resp = await HttpRequest.request(
  -    server.apiGetFlutterGAEnabled,
  -    method: 'POST',
  -  );
  -  if (resp.status == HttpStatus.ok) {
  -    // A return value of 'null' implies Flutter tool has never been run.
  -    enabled = json.decode(resp.responseText);
  -  } else {
  -    _logWarning(resp, server.apiGetFlutterGAEnabled);
  +  if (isDevToolsServerAvailable) {
  +    final resp = await _request(server.apiGetFlutterGAEnabled);
  +    if (resp?.status == HttpStatus.ok) {
  +      // A return value of 'null' implies Flutter tool has never been run.
  +      enabled = json.decode(resp.responseText);
  +    } else {
  +      _logWarning(resp, server.apiGetFlutterGAEnabled);
  +    }
     }
   
     return enabled;
  
positive.code: Future<bool> get isFirstRun async {
    bool firstRun = false;
  
    final resp = await HttpRequest.request(
      server.apiGetDevToolsFirstRun,
      method: 'POST',
    );
    if (resp.status == HttpStatus.ok) {
      firstRun = json.decode(resp.responseText);
    } else {
      _logWarning(resp, server.apiGetDevToolsFirstRun);
    }
    return firstRun;
  }
  
  
negative.code:   external String get ide_launched;
  }
  
  // Code to check if DevTools server is available, will only be true in release
  // mode, debug mode will be set to false.
  bool get isDevToolsServerAvailable => !isDebugBuild();
  
  /// Helper to catch any server request which could fail we don't want to fail
  /// because Analytics had a problem.
  ///
  /// Returns HttpRequest or null (if server failure).
  Future<HttpRequest> _request(String url) async {
    HttpRequest response;
  
    try {
      response = await HttpRequest.request(url, method: 'POST');
    } catch (_) {}
  
    return response;
  }
  
  void _logWarning(HttpRequest response, String apiType, [String respText]) {
    log(
      'HttpRequest $apiType failed status = ${response?.status}'
      '${respText != null ? ', responseText = $respText' : ''}',
      LogLevel.warning,
    );
  