UriPathWithExtras extension

on

Properties

fullPath String

Available on Uri, provided by the UriPathWithExtras extension

Returns the full path including query and fragment if they exist.
no setter

Methods

getQueryParam(String key, {String? defaultValue}) String?

Available on Uri, provided by the UriPathWithExtras extension

Returns the value for the given key from query parameters, or defaultValue if it does not exist.
hasQueryParam(String key) bool

Available on Uri, provided by the UriPathWithExtras extension

Returns true if this Uri contains the given key as a query parameter.
isSubPathOf(Uri other) bool

Available on Uri, provided by the UriPathWithExtras extension

Returns true if this Uri's path starts with other's path.
withAppendedPath(String subPath) Uri

Available on Uri, provided by the UriPathWithExtras extension

Returns a new Uri with subPath appended to the current path.