OudsLink constructor

const OudsLink({
  1. Key? key,
  2. required String label,
  3. @Deprecated('This parameter is deprecated and will be removed in a future version. Use the dedicated OudsLink.icon constructor instead with new object OudsIcon.') OudsIcon? icon,
  4. @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,
  5. OudsLinkSize size = OudsLinkSize.defaultSize,
  6. OudsLinkDensity density = OudsLinkDensity.defaultDensity,
  7. VoidCallback? onPressed,
})

Creates a text-only OudsLink.

Implementation

const OudsLink({
  super.key,
  required this.label,
  @Deprecated(
    'This parameter is deprecated and will be removed in a future version. Use the dedicated OudsLink.icon constructor instead with new object OudsIcon.',
  )
  this.icon,
  @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,
}) : _indicator = null;