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
-
Links(List<
Link> source) -
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
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
. -
conformance(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingconformance
orhttp://www.opengis.net/def/rel/ogc/1.0/conformance
. -
data(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingdata
orhttp://www.opengis.net/def/rel/ogc/1.0/data
. -
dataMeta(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchinghttp://www.opengis.net/def/rel/ogc/1.0/data-meta
. -
describedBy(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingdescribedBy
. -
item(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingitem
. -
items(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchingitems
orhttp://www.opengis.net/def/rel/ogc/1.0/items
. -
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
. -
queryables(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
rel
matchinghttp://www.opengis.net/def/rel/ogc/1.0/queryables
or[ogc-rel:queryables]
orqueryables
(the last one not standard but was found somewhere..). -
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