UrlExtensions class abstract final

Utility class for URL operations.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

extractDomain(String? url) String?
Returns the domain (host) extracted from url, or null if invalid.
isValidHttpUrl(String? url) bool
Returns true if url is a valid HTTP or HTTPS URL.
isValidUrl(String? url) bool
Returns true if url is a valid URL with a scheme and host.
tryParse(String? url) Uri?
Returns url parsed as a URI, or null if parsing fails.