UrlCanonicalizer class

The UrlCanonicalizer is used for the process of converting an URL into a canonical (normalized) form.

Constructors

UrlCanonicalizer({bool sort = true, bool sortValues = false, List<String>? order, bool removeFragment = false, List<String>? whitelist, List<String>? blacklist})

Properties

blacklist List<String>?
final
hashCode int
The hash code for this object.
no setterinherited
order List<String>?
final
removeFragment bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sort bool
final
sortValues bool
final
whitelist List<String>?
final

Methods

canonicalize<T>(T url, {T? context}) → T
canonicalizeUrls<T>(Iterable<T> urls, {T? context}) List<T>
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