LinkSpanBuilder typedef

  1. @Deprecated('Only used by LinkButton, which is itself deprecated. ' 'Will be removed in 2.0.0.')
LinkSpanBuilder = InlineSpan Function(Color color)

A builder that creates a styled InlineSpan for the given link color.

LinkButton calls this on every rebuild so the span is always coloured with the current hover state — normal LinkButton.color or LinkButton.hoverColor.

Implementation

@Deprecated(
  'Only used by LinkButton, which is itself deprecated. '
  'Will be removed in 2.0.0.',
)
typedef LinkSpanBuilder = InlineSpan Function(Color color);