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. Audited: 2026-06-12 11:26 EDT
isValidHttpUrl(String? url) bool
Returns true if url is a valid HTTP or HTTPS URL. Audited: 2026-06-12 11:26 EDT
isValidUrl(String? url) bool
Returns true if url is a valid URL with a scheme and host. Audited: 2026-06-12 11:26 EDT
tryParse(String? url) Uri?
Returns url parsed as a URI, or null if parsing fails. Audited: 2026-06-12 11:26 EDT