buildText method Null safety

Widget? buildText(
  1. BuildMetadata meta,
  2. TextStyleHtml tsh,
  3. InlineSpan text
)

Builds RichText.

Implementation

Widget? buildText(BuildMetadata meta, TextStyleHtml tsh, InlineSpan text) =>
    RichText(
      maxLines: meta.maxLines > 0 ? meta.maxLines : null,
      overflow: meta.overflow,
      text: text,
      textAlign: tsh.textAlign ?? TextAlign.start,
      textDirection: tsh.textDirection,
    );