RequestUrl class

An helper class which wraps around URI to provide a more flexible way of building request URLs.

Annotations
  • @immutable

Constructors

RequestUrl.absolute(Uri uri)
Creates a new RequestUrl instance from the given absolute Uri.
factory
RequestUrl.absoluteMerge(Uri uri, [Uri? base])
Creates a new RequestUrl instance from the given absolute Uri and merges it with the given base Uri.
factory
RequestUrl.relative(String endpoint)
Creates a new RequestUrl instance from the given relative endpoint.
factory
RequestUrl.relativeParts(Iterable parts)
Creates a new RequestUrl instance from the given relative endpoint parts. The parts are joined together using joinAll.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isAbsolute bool
Gets if this instance holds an absolute URL.
no setter
isRelative bool
Gets if this instance holds a relative URL.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri
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

Operators

operator ==(covariant RequestUrl other) bool
The equality operator.
override