resolveUrl method
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();
}