Urn class

A URN is a URI that uses the "urn:" scheme.

This format supports RFC 8141: Uniform Resource Names (URNs).

Unlike a URL, resolution of a URN generally requires another service.

Constructors

Urn({required String nid, required String nss, String fragment = '', String rComponent = '', Map<String, String>? qComponents})
Constructor.

Properties

fragment → String
The fragment (f-component).
final
hashCode → int
The hash code for this object.
no setteroverride
nid → String
The namespace identifier.
final
nss → String
The namespace specific string.
final
qComponentParameters → Map<String, String>
no setter
rComponent → String
Components to be used by resolution services.
final
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.
override
toUri() → Uri

Operators

operator ==(Object other) → bool
Equality is defined in RFC 8141 Section 3: URN equivalence.
override

Static Methods

tryParse(String input) → Urn?
Parses the input URN and returns a Urn object.
tryParseUri(Uri uri) → Urn?

Constants

schemeName → const String