Links class abstract
Metadata container for links.
See also IANA descriptions about common values for a link rel.
Constructors
- Links()
-
Default
const
constructor to allow extending this abstract class.const - Links.empty()
-
An empty metadata container for links.
factory
-
Links.fromJson(Iterable<
Object?> json) -
Metadata container for links from JSON objects.
factory
-
Links.view(Iterable<
Link> source) -
Metadata container for links as a view of
source
.factory
Properties
Methods
-
alternate(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingalternate
. -
byRel(
String rel, {String? type, String? hreflang}) → Iterable< Link> -
All links matching by the given
rel
, and optionaltype
andhreflang
. -
canonical(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingcanonical
. -
collection(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingcollection
. -
describedBy(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingdescribedBy
. -
item(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingitem
. -
license(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchinglicense
. -
next(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingnext
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prev(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingprev
. -
self(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingself
. -
service(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingservice
. -
serviceDesc(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingservice-desc
. -
serviceDoc(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingservice-doc
. -
serviceMeta(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingservice-meta
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited