buildTextSpan function

TextSpan buildTextSpan(
  1. List<LinkElement> elements, {
  2. TextStyle? style,
  3. TextStyle? linkStyle,
  4. LinkCallback? onOpen,
  5. bool useMouseRegion = false,
})

Raw TextSpan builder for more control on the RichText

Implementation

TextSpan buildTextSpan(
  List<LinkElement> elements, {
  TextStyle? style,
  TextStyle? linkStyle,
  LinkCallback? onOpen,
  bool useMouseRegion = false,
}) =>
    TextSpan(
      children: buildTextSpanChildren(
        elements,
        style: style,
        linkStyle: linkStyle,
        onOpen: onOpen,
        useMouseRegion: useMouseRegion,
      ),
    );