Html constructor
Html({
- Key? key,
- required String data,
- EdgeInsetsGeometry? padding,
- Color? backgroundColor,
- TextStyle? defaultTextStyle,
- OnLinkTap? onLinkTap,
- bool renderNewlines = false,
- ImageErrorListener? onImageError,
- TextStyle? linkStyle = const TextStyle(decoration: TextDecoration.underline, color: Colors.blueAccent, decorationColor: Colors.blueAccent),
- bool shrinkToFit = false,
- OnPillTap? onPillTap,
- GetPillInfo? getPillInfo,
- ImageProperties? imageProperties,
- OnImageTap? onImageTap,
- bool showImages = true,
- GetMxcUrl? getMxcUrl,
- int? maxLines,
- double? emoteSize,
- GetCodeLanguage? getCodeLanguage,
- SetCodeLanguage? setCodeLanguage,
- InlineSpan? inlineSpanEnd,
Implementation
Html({
Key? key,
required this.data,
this.padding,
this.backgroundColor,
this.defaultTextStyle,
this.onLinkTap,
this.renderNewlines = false,
this.onImageError,
this.linkStyle = const TextStyle(
decoration: TextDecoration.underline,
color: Colors.blueAccent,
decorationColor: Colors.blueAccent),
this.shrinkToFit = false,
this.onPillTap,
this.getPillInfo,
this.imageProperties,
this.onImageTap,
this.showImages = true,
this.getMxcUrl,
this.maxLines,
this.emoteSize,
this.getCodeLanguage,
this.setCodeLanguage,
this.inlineSpanEnd,
}) : super(key: key);