fromResolvedUrl static method

ResourceContent? fromResolvedUrl(
  1. String? url, {
  2. String? baseURL,
  3. String? content,
})

Resolved url before instantiate fromURI.

Implementation

static ResourceContent? fromResolvedUrl(String? url,
    {String? baseURL, String? content}) {
  if (url == null) {
    if (content != null) return ResourceContent(null, content);
    return null;
  }

  var resolvedURL = resolveUri(url, baseURL: baseURL);
  return ResourceContent.fromURI(resolvedURL, content);
}