Anchor class

The Anchor widget (HTML's a tag).

Inheritance

Constructors

Anchor({String? href, String? hrefLang, String? ping, ReferrerPolicyType? referrerPolicy, String? rel, String? target, String? download, String? type, Key? key, NullableElementCallback? ref, String? id, String? title, String? style, String? className, bool? hidden, String? innerText, Widget? child, List<Widget>? children, EventCallback? onClick, Map<String, String>? additionalAttributes})
const

Properties

additionalAttributes Map<String, String>?
Any additional attributes.
finalinherited
child Widget?
Child widget.
finalinherited
children List<Widget>?
Multiple child widgets.
finalinherited
className String?
The classes attribute specifies one or more class names for an dom node.
finalinherited
correspondingTag DomTagType
Corresponding HTML tag to use to render this widget
no setteroverride
download String?
Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value.
final
hashCode int
The hash code for this object.
no setterinherited
hidden bool?
The hidden attribute is a boolean attribute. When present, it specifies that an dom node is not yet, or is no longer, relevant.
finalinherited
href String?
The URL that the hyperlink points to.
final
hrefLang String?
Hints at the human language of the linked URL.
final
id String?
ID of dom node.
finalinherited
innerText String?
Element's inner text.
finalinherited
key Key?
Keys help Rad identify which widgets have changed, are added, or are removed when a widget has multiple sibling widgets.
finalinherited
onClick EventCallback?
On click event listener.
finalinherited
ping String?
A space-separated list of URLs. When the link is followed, the browser will send POST requests with the body PING to the URLs.
final
ref NullableElementCallback?
Reference callback.
finalinherited
referrerPolicy ReferrerPolicyType?
How much of the referrer to send when following the link.
final
rel String?
The relationship of the linked URL as space-separated link types.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style String?
The style attribute for inline CSS.
finalinherited
target String?
Where to display the linked URL.
final
title String?
The title attribute specifies extra information about an dom node.
finalinherited
type String?
Hints at the linked URL's format with a MIME type.
final
widgetCaptureEventListeners Map<DomEventType, EventCallback?>
Events that this widget is listening to in capturing phase.
no setterinherited
widgetEventListeners Map<DomEventType, EventCallback?>
Events that this widget is listening to in bubbling phase.
no setterinherited

Methods

createRenderElement(RenderElement parent) RenderElement
Create element for current widget.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldUpdateWidget(covariant Anchor oldWidget) bool
Whether to update current widget.
override
shouldUpdateWidgetChildren(Widget oldWidget, bool shouldUpdateWidget) bool
Whether to update current widget's children.
inherited
toString() String
A string representation of this object.
inherited

Operators

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