TextParser constructor

TextParser({
  1. bool shrinkToFit = false,
  2. OnLinkTap? onLinkTap,
  3. bool renderNewlines = false,
  4. required String html,
  5. ImageErrorListener? onImageError,
  6. TextStyle? linkStyle = const TextStyle(decoration: TextDecoration.underline, color: Colors.blueAccent, decorationColor: Colors.blueAccent),
  7. OnPillTap? onPillTap,
  8. GetPillInfo? getPillInfo,
  9. ImageProperties? imageProperties,
  10. OnImageTap? onImageTap,
  11. bool showImages = true,
  12. GetMxcUrl? getMxcUrl,
  13. int? maxLines,
  14. TextStyle? defaultTextStyle,
  15. double? emoteSize,
  16. SetCodeLanguage? setCodeLanguage,
  17. GetCodeLanguage? getCodeLanguage,
  18. InlineSpan? inlineSpanEnd,
})

Implementation

TextParser({
  this.shrinkToFit = false,
  this.onLinkTap,
  this.renderNewlines = false,
  required this.html,
  this.onImageError,
  this.linkStyle = const TextStyle(
    decoration: TextDecoration.underline,
    color: Colors.blueAccent,
    decorationColor: Colors.blueAccent,
  ),
  this.onPillTap,
  this.getPillInfo,
  this.imageProperties,
  this.onImageTap,
  this.showImages = true,
  this.getMxcUrl,
  this.maxLines,
  this.defaultTextStyle,
  this.emoteSize,
  this.setCodeLanguage,
  this.getCodeLanguage,
  this.inlineSpanEnd,
});