Links class abstract

Metadata container for links.

See also IANA descriptions about common values for a link rel.

Constructors

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

all Iterable<Link>
All links iterated.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

alternate({String? type, String? hreflang}) Iterable<Link>
All links with rel matching alternate.
byRel(String rel, {String? type, String? hreflang}) Iterable<Link>
All links matching by the given rel, and optional type and hreflang.
canonical({String? type, String? hreflang}) Iterable<Link>
All links with rel matching canonical.
collection({String? type, String? hreflang}) Iterable<Link>
All links with rel matching collection.
describedBy({String? type, String? hreflang}) Iterable<Link>
All links with rel matching describedBy.
item({String? type, String? hreflang}) Iterable<Link>
All links with rel matching item.
license({String? type, String? hreflang}) Iterable<Link>
All links with rel matching license.
next({String? type, String? hreflang}) Iterable<Link>
All links with rel matching next.
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 matching prev.
self({String? type, String? hreflang}) Iterable<Link>
All links with rel matching self.
service({String? type, String? hreflang}) Iterable<Link>
All links with rel matching service.
serviceDesc({String? type, String? hreflang}) Iterable<Link>
All links with rel matching service-desc.
serviceDoc({String? type, String? hreflang}) Iterable<Link>
All links with rel matching service-doc.
serviceMeta({String? type, String? hreflang}) Iterable<Link>
All links with rel matching service-meta.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited