Link class

A Link is a reference from one Web resource to another.

Constructors

Creates a new Link
Link.create({required String type, required String href, required String rel})
Helper factory to handle the rel attribute
factory
Link.fromXml(XmlElement element)
Creates a Link from an XmlElement
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
href String
resource URI
getter/setter pair
length String?
Length of the linked content in octets
getter/setter pair
originalRel String?
Original REL attribute. If the REL attribute is not a valid LinkRelationType his attribute will be set with the original REL value
getter/setter pair
rel LinkRelationType
Link's REL attribute
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
Link's title
getter/setter pair
type String
Link's type attribute.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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