a constructor

const a(
  1. List<Component> children, {
  2. String? download,
  3. required String href,
  4. Target? target,
  5. String? type,
  6. ReferrerPolicy? referrerPolicy,
  7. VoidCallback? onClick,
  8. String? id,
  9. String? classes,
  10. Styles? styles,
  11. Map<String, String>? attributes,
  12. Map<String, EventCallback>? events,
  13. Key? key,
})

The <a> HTML element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address.

Content within each <a> should indicate the link's destination. If the href attribute is present, pressing the enter key while focused on the <a> element will activate it.

Implementation

const a(
  this.children, {
  this.download,
  required this.href,
  this.target,
  this.type,
  this.referrerPolicy,
  this.onClick,
  this.id,
  this.classes,
  this.styles,
  this.attributes,
  this.events,
  super.key,
});