Uri class

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

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

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

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

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.