getUri static method
Implementation
static Uri getUri(Resource resource) {
if (resource is StringValue) {
return Uri.parse(resource.url);
} else if (resource is UriValue) {
return resource.uri;
} else {
return (resource as RequestValue).request.url;
}
}