Html constructor

Html({
  1. Key? key,
  2. required String data,
  3. EdgeInsetsGeometry? padding,
  4. Color? backgroundColor,
  5. TextStyle? defaultTextStyle,
  6. OnLinkTap? onLinkTap,
  7. bool renderNewlines = false,
  8. ImageErrorListener? onImageError,
  9. TextStyle? linkStyle = const TextStyle(decoration: TextDecoration.underline, color: Colors.blueAccent, decorationColor: Colors.blueAccent),
  10. bool shrinkToFit = false,
  11. OnPillTap? onPillTap,
  12. GetPillInfo? getPillInfo,
  13. ImageProperties? imageProperties,
  14. OnImageTap? onImageTap,
  15. bool showImages = true,
  16. GetMxcUrl? getMxcUrl,
  17. int? maxLines,
  18. double? emoteSize,
  19. GetCodeLanguage? getCodeLanguage,
  20. SetCodeLanguage? setCodeLanguage,
  21. 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);