onMarkup method

  1. @override
HypertextSpan onMarkup(
  1. List<HypertextSpan>? children,
  2. MarkupContext ctx
)
override

Implementation

@override
HypertextSpan onMarkup(List<HypertextSpan>? children, MarkupContext ctx) {
  final decor = optTextDecoration(ctx);
  TextStyle? style;
  if (decor != null) {
    style = TextStyle(
      decorationStyle: decor.style,
      decoration: decor.decoration,
      decorationColor: decor.color,
      decorationThickness: decor.thickness,
    );
  }
  return HypertextTextSpan(children: children, style: style);
}