core/extract_hostname library

Functions

extractHostname(String url, bool urlIsValidHostname) String?
Extracts the hostname from a given URL.