Link class

Annotations
  • @immutable

Constructors

Link with href. Optional: rel, type, hreflang, title, length.
const
Link.fromJson(dynamic data)
Create a new link from data (ie. a decoded JSON object or a href link).
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
href Uri
The href part of a link.
final
hreflang String?
An optional hreflang part of a link.
final
length int?
An optional length part of a link.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
rel String?
An optional rel part of a link.
final
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
title String?
An optional title part of a link.
final
type String?
An optional type part of a link.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this link to a data object.
toString() String
A string representation of this object.
inherited

Operators

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