UrlUtils class

URL utility functions

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

addQueryParams(String url, Map<String, String> params) String
Adds query parameters to a URL
build({required String scheme, required String host, String? path, Map<String, String>? queryParameters, int? port}) String
Builds a URL from components
decode(String url) String
Decodes a URL
encode(String url) String
Encodes a URL
extractDomain(String url) String?
Extracts domain from URL
extractPath(String url) String?
Extracts path from URL
getQueryParam(String url, String key) String?
Gets query parameter value from URL
isValid(String? url) bool
Validates if a string is a valid URL
parse(String? url) Uri?
Parses a URL and returns Uri object
removeQueryParams(String url, List<String> keys) String
Removes query parameters from a URL