Uri class
A universal resource identifier representing either a file on disk or another resource, like untitled resources.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
Properties
-
Available on Uri, provided by the Uri$Typings extension
Authority is thewww.example.com
part ofhttp://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 thefragment
part ofhttp://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 ofhttp://www.example.com/some/path?query#fragment
.no setter - query → String
-
Available on Uri, provided by the Uri$Typings extension
Query is thequery
part ofhttp://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 thehttp
part ofhttp://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
, orscheme:with/path
.