bool allowsUri(String uri)

Checks if the uri is allowed on the specified attribute.

The uri provided may or may not be a relative path.

Source

bool allowsUri(String uri);