TextParser constructor
TextParser({
- bool shrinkToFit = false,
- OnLinkTap? onLinkTap,
- bool renderNewlines = false,
- required String html,
- ImageErrorListener? onImageError,
- TextStyle? linkStyle = const TextStyle(decoration: TextDecoration.underline, color: Colors.blueAccent, decorationColor: Colors.blueAccent),
- OnPillTap? onPillTap,
- GetPillInfo? getPillInfo,
- ImageProperties? imageProperties,
- OnImageTap? onImageTap,
- bool showImages = true,
- GetMxcUrl? getMxcUrl,
- int? maxLines,
- TextStyle? defaultTextStyle,
- double? emoteSize,
- SetCodeLanguage? setCodeLanguage,
- GetCodeLanguage? getCodeLanguage,
- 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,
});