Uri class

A universal resource identifier representing either a file on disk or another resource, like untitled resources.

Available extensions
Annotations

Constructors

Uri(String scheme, String authority, String path, String query, String fragment)
factory

Properties

authority → String

Available on Uri, provided by the Uri$Typings extension

Authority is the www.example.com part of http://www.example.com/some/path?query#fragment. The part between the first double slashes and the next slash.
no setter
fragment → String

Available on Uri, provided by the Uri$Typings extension

Fragment is the fragment part of http://www.example.com/some/path?query#fragment.
no setter
fsPath → String

Available on Uri, provided by the Uri$Typings extension

The string representing the corresponding file system path of this Uri.
no setter
hashCode → int
The hash code for this object.
no setterinherited
path → String

Available on Uri, provided by the Uri$Typings extension

Path is the /some/path part of http://www.example.com/some/path?query#fragment.
no setter
query → String

Available on Uri, provided by the Uri$Typings extension

Query is the query part of http://www.example.com/some/path?query#fragment.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheme → String

Available on Uri, provided by the Uri$Typings extension

Scheme is the http part of http://www.example.com/some/path?query#fragment. The part before the first colon.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() → dynamic

Available on Uri, provided by the Uri$Typings extension

Returns a JSON representation of this Uri.
toString() → String
A string representation of this object.
inherited
toString$([bool? skipEncoding]) → String

Available on Uri, provided by the Uri$Typings extension

Returns a string representation of this Uri. The representation and normalization of a URI depends on the scheme.
with$(IInline6 change) → Uri

Available on Uri, provided by the Uri$Typings extension

Derive a new Uri from this Uri.

Operators

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

Static Methods

file(String path) → Uri
Create an URI from a file system path. The {@link Uri.schemescheme} will be file.
from(IInline5 components) → Uri
Create an URI from its component parts
joinPath(Uri base, [Iterable? pathSegments]) → Uri
Create a new uri which path is the result of joining the path of the base uri with the provided path segments.
parse(String value, [bool? strict]) → Uri
Create an URI from a string, e.g. http://www.example.com/some/path, file:///usr/home, or scheme:with/path.