getUrl method

  1. @override
String? getUrl(
  1. String? ref
)
override

Returns the URL appended to the reference of the file using the hostUrl.

In case ref is null or contains "http", ref is returned as-is.

Implementation

@override
String? getUrl(String? ref) {
  if (ref == null) return ref;

  // Already a well formed url, return it as-is.
  if (ref.contains('http')) return ref;

  return '${config.hostUrl}$ref';
}