hasSubscriptionForFile method

bool hasSubscriptionForFile(
  1. String filePath,
  2. AnalysisService service
)

Return true if the file with the given filePath has a subscription for the given service.

Implementation

bool hasSubscriptionForFile(String filePath, AnalysisService service) {
  var subscriptions = _subscriptions;
  if (subscriptions == null) {
    return false;
  }
  var files = subscriptions[service];
  return files != null && files.contains(filePath);
}