UriExtensions extension
Extension methods for URI manipulation.
- on
Properties
- fileExtension → String?
-
Available on Uri, provided by the UriExtensions extension
Gets the file extension from this URI path.no setter - fileName → String?
-
Available on Uri, provided by the UriExtensions extension
Gets the file name from this URI path.no setter - isImageUri → bool
-
Available on Uri, provided by the UriExtensions extension
Returns true if this URI points to an image file.no setter - isSecure → bool
-
Available on Uri, provided by the UriExtensions extension
Returns true if this URI uses HTTPS scheme.no setter
Methods
-
addQueryParameter(
String key, String? value) → Uri -
Available on Uri, provided by the UriExtensions extension
Adds or updates a query parameter in this URI. -
getQueryParameter(
String key) → String? -
Available on Uri, provided by the UriExtensions extension
Gets the value of a specific query parameter. -
hasQueryParameter(
String key) → bool -
Available on Uri, provided by the UriExtensions extension
Returns true if this URI has a specific query parameter. -
removeQuery(
{bool removeFragment = true}) → Uri -
Available on Uri, provided by the UriExtensions extension
Removes query parameters and optionally the fragment from this URI. -
replaceHost(
String newHost) → Uri -
Available on Uri, provided by the UriExtensions extension
Returns a new URI with the host replaced.