resolveUrl method

String resolveUrl(
  1. String baseUrl,
  2. String url
)

Returns url relative to a baseUrl.

Implementation

String resolveUrl(String baseUrl, String url) {
  final normalizedBase = _normalize(baseUrl);
  final normalizedUrl = _normalize(url);
  final asset =
      AssetId.resolve(normalizedUrl, from: AssetId.resolve(normalizedBase));
  return asset.uri.toString();
}