toTextSpan static method

TextSpan toTextSpan(
  1. String htmlContent, {
  2. HyperLinkCallback? linksCallback,
  3. TextStyle? defaultStyle,
  4. Color? linkColor,
})

Implementation

static TextSpan toTextSpan(String htmlContent,
    {HyperLinkCallback? linksCallback,
    TextStyle? defaultStyle,
    Color? linkColor}) {
  return TextSpan(
    children: Convert(
      htmlContent,
      linkCallBack: linksCallback,
      defaultStyle: defaultStyle,
    ).convert(linkColor),
  );
}