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
relmatchingalternate. -
byRel(
String rel, {String? type, String? hreflang}) → Iterable< Link> -
All links matching by the given
rel, and optionaltypeandhreflang. -
canonical(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingcanonical. -
collection(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingcollection. -
conformance(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingconformanceorhttp://www.opengis.net/def/rel/ogc/1.0/conformance. -
data(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingdataorhttp://www.opengis.net/def/rel/ogc/1.0/data. -
dataMeta(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchinghttp://www.opengis.net/def/rel/ogc/1.0/data-meta. -
describedBy(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingdescribedBy. -
item(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingitem. -
items(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingitemsorhttp://www.opengis.net/def/rel/ogc/1.0/items. -
license(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchinglicense. -
next(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingnext. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prev(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingprev. -
queryables(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchinghttp://www.opengis.net/def/rel/ogc/1.0/queryablesor[ogc-rel:queryables]orqueryables(the last one not standard but was found somewhere..). -
self(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingself. -
service(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingservice. -
serviceDesc(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingservice-desc. -
serviceDoc(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingservice-doc. -
serviceMeta(
{String? type, String? hreflang}) → Iterable< Link> -
All links with
relmatchingservice-meta. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited