Links class

A metadata container for links.

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

See also OGC API Features standard "Part 1: Core" section "5.2. Link relations" for reference.

Annotations
  • @immutable

Constructors

Creates a metadata container for links as a view of source.
const
Links.empty()
Creates an empty metadata container for links.
const
Links.fromJson(Iterable data)
Creates a metadata container for links from JSON data.
factory

Properties

all List<Link>
All links as a list.
no setter
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
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.
conformance({String? type, String? hreflang}) Iterable<Link>
All links with rel matching conformance or http://www.opengis.net/def/rel/ogc/1.0/conformance.
data({String? type, String? hreflang}) Iterable<Link>
All links with rel matching data or http://www.opengis.net/def/rel/ogc/1.0/data.
dataMeta({String? type, String? hreflang}) Iterable<Link>
All links with rel matching http://www.opengis.net/def/rel/ogc/1.0/data-meta.
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.
items({String? type, String? hreflang}) Iterable<Link>
All links with rel matching items or http://www.opengis.net/def/rel/ogc/1.0/items.
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.
queryables({String? type, String? hreflang}) Iterable<Link>
All links with rel matching http://www.opengis.net/def/rel/ogc/1.0/queryables or [ogc-rel:queryables] or queryables (the last one not standard but was found somewhere..).
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