getUri static method

Uri getUri(
  1. Resource resource
)

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;
  }
}