URIRef class

Constructors

URIRef(String value, {String? base})
Modifies default constructor's base to be optional.
URIRef.fullUri(String value)
Constructs an instance from a full uri which is often handier.

Properties

base String?
getter/setter pair
hashCode int
Uses value as the main identifier, useful for saving URIRef type in set.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
getter/setter pair

Methods

checkUri() → void
Checks valid uri and log relevant information.
fragment() String
Extracts fragment after '#' for a valid URI.
inNamespace(Namespace ns) bool
Checks if a full URIRef contains the namespace.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
slash(String name) URIRef
Adds attribute to form a concrete URIRef
toString() String
A string representation of this object.
override
updateBase({required String newBase}) → void
Sets a different base with some limitations.

Operators

operator ==(Object other) bool
Two URIRef instances are equal if they have the same value/hashcode.
override

Static Methods

isValidUri(String uri) bool
Checks if a uri if valid based on the discussion in stackoverflow.