IRI class

Represents an Internationalized Resource Identifier (IRI) according to RFC 3987.

This class focuses on the parsing, validation, component access, normalization, and URI conversion of IRIs.

Annotations
  • @immutable

Constructors

IRI.new(String originalValue)
Create a new Internationalized Resource Identifier from a String

Properties

authority String
The authority component.
no setter
fragment String
The fragment identifier component.
no setter
hasAbsolutePath bool
Whether the URI has an absolute path (starting with '/').
no setter
hasAuthority bool
Whether the IRI has an authority component.
no setter
hasEmptyPath bool
Whether the URI has an empty path.
no setter
hasFragment bool
Whether the URI has a fragment part.
no setter
hashCode int
The hash code for this object.
no setteroverride
hasPort bool
Whether the URI has an explicit port.
no setter
hasQuery bool
Whether the URI has a query part.
no setter
hasScheme bool
Whether the IRI has a scheme component.
no setter
host String
The host part of the authority component.
no setter
isAbsolute bool
Whether the IRI is absolute.
no setter
originalValue String
Returns the original, un-normalized string value used to create this IRI. Uses the stored code points to reconstruct the string.
no setter
path String
The path component.
no setter
pathSegments List<String>
The ITI path split into its segments.
no setter
port int
The port part of the authority component.
no setter
query String
The query component.
no setter
queryParameters Map<String, String>
The IRI query split into a map according to the rules specified for FORM post in the HTML 4.01 specification section 17.13.4.
no setter
queryParametersAll Map<String, List<String>>
Returns the IRI query split into a map according to the rules specified for FORM post in the HTML 4.01 specification section 17.13.4.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheme String
The scheme component of the IRI.
no setter
userInfo String
The user info part of the authority component.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
toUri() Uri
Converts the IRI to it's canonical Uri encoding

Operators

operator ==(Object other) bool
The equality operator.
override