onMarkup method

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

Implementation

@override
HypertextSpan onMarkup(List<HypertextSpan>? children, MarkupContext ctx) {
  FontWeight? weight = optFontWeight(ctx);

  TextStyle? style;
  if (weight != null) style = TextStyle(fontWeight: weight);
  return HypertextTextSpan(children: children, style: style);
}