OudsLink constructor

const OudsLink({
  1. Key? key,
  2. required String label,
  3. @Deprecated('OudsLinkLayout is deprecated and will be removed in a future version. ' 'Use the dedicated OudsLink.icon, OudsLink.previous, OudsLink.next or ' 'OudsLink.external constructors instead.') OudsLinkLayout layout = OudsLinkLayout.textOnly,
  4. OudsLinkSize size = OudsLinkSize.defaultSize,
  5. OudsLinkDensity density = OudsLinkDensity.defaultDensity,
  6. VoidCallback? onPressed,
  7. String? icon,
})

Creates a text-only OudsLink.

Implementation

const OudsLink({
  super.key,
  required this.label,
  @Deprecated(
    'OudsLinkLayout is deprecated and will be removed in a future version. '
    'Use the dedicated OudsLink.icon, OudsLink.previous, OudsLink.next or '
    'OudsLink.external constructors instead.',
  )
  this.layout = OudsLinkLayout.textOnly,
  this.size = OudsLinkSize.defaultSize,
  this.density = OudsLinkDensity.defaultDensity,
  this.onPressed,
  this.icon,
}) : _indicator = null,
     tinted = true;