OudsLink.external constructor

const OudsLink.external({
  1. Key? key,
  2. required String label,
  3. OudsLinkSize size = OudsLinkSize.defaultSize,
  4. OudsLinkDensity density = OudsLinkDensity.defaultDensity,
  5. VoidCallback? onPressed,
})

Creates an OudsLink navigating outside the current product, service or application, displaying a trailing external indicator after the label.

  • key : Controls how one widget replaces another widget in the tree.
  • label : The text displayed by the link. Required, non-empty; wraps onto multiple lines automatically if it doesn't fit the available width.
  • size : The size of the link, OudsLinkSize.defaultSize or OudsLinkSize.small, controlling text style, indicator size and touch target dimensions. Defaults to OudsLinkSize.defaultSize.
  • density : The density of the link, OudsLinkDensity.defaultDensity or OudsLinkDensity.compact, controlling the minimum height and block padding. Defaults to OudsLinkDensity.defaultDensity.
  • onPressed : Callback invoked when the link is tapped or activated (keyboard/screen reader), typically to open the external destination. When null, the link is rendered and announced as disabled and cannot receive focus.

The trailing external icon informs users that the destination belongs to another context; it is fixed and cannot be customized (unlike OudsLink.icon).

Implementation

const OudsLink.external({
  super.key,
  required this.label,
  this.size = OudsLinkSize.defaultSize,
  this.density = OudsLinkDensity.defaultDensity,
  this.onPressed,
}) : icon = null,
     tinted = true,
     _indicator = OudsLinkIndicator.external,
     layout = OudsLinkLayout.next;