visitText method

Widget? visitText(
  1. Text text,
  2. TextStyle? preferredStyle
)

Called when a text node has been reached.

If MarkdownWidget.styleSheet has a style of this tag, will passing to preferredStyle.

If you needn't build a widget, return null.

Implementation

Widget? visitText(md.Text text, TextStyle? preferredStyle) => null;