isUrlSupported method

bool isUrlSupported({
  1. required Uri url,
  2. required Map<String, List<Config>> configMap,
  3. int configIndex = 0,
})

Implementation

bool isUrlSupported({
  required Uri url,
  required Map<String, List<Config>> configMap,
  int configIndex = 0,
}) {
  Config? config = getConfig(
    url,
    configs: configMap,
    configIndex: configIndex,
  );
  UrlTarget? urlTarget;
  if (config != null) {
    urlTarget = fetchTarget(config.urlTargets, url);
  }
  if (config == null || urlTarget == null) {
    return false;
  }
  return true;
}