parseHeadingHTML function

Paragraph parseHeadingHTML(
  1. String content, {
  2. bool isArabic = false,
  3. TextAlign textAlign = TextAlign.left,
  4. String arabicFontFamily = "",
  5. String fontFamily = "",
  6. double baseFontSize = 16.0,
})

Implementation

Paragraph parseHeadingHTML(String content,
    {bool isArabic = false,
    TextAlign textAlign = TextAlign.left,
    String arabicFontFamily = "",
    String fontFamily = "",
    double baseFontSize = 16.0}) {
  var data = [TextSpan(text: content)];
  _contentParsers.forEach((p) => data = p(data, baseFontSize));
  return Paragraph.heading(content, _decodeHTML(data),
      isArabic ? arabicFontFamily : fontFamily, textAlign);
}