MarkdownWidget constructor
MarkdownWidget({
- Key? key,
- required bool isDarkTheme,
- String? data,
- LatexConfig? latexConfig,
- ImageConfig? imageConfig,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry codePadding = EdgeInsets.zero,
- bool selectable = true,
- bool shrinkWrap = false,
- Color? backgroundColor,
- String? assetPath,
- Widget errorBuilder()?,
- Widget assetLoaderBuilder()?,
- CodeConfig? codeConfig,
- TextConfig? textConfig,
- LinkConfig? linkConfig,
Implementation
MarkdownWidget({
super.key,
required this.isDarkTheme,
this.data,
this.latexConfig,
this.imageConfig,
this.padding,
this.codePadding = EdgeInsets.zero,
this.selectable = true,
this.shrinkWrap = false,
this.backgroundColor,
this.assetPath,
this.errorBuilder,
this.assetLoaderBuilder,
code_config.CodeConfig? codeConfig,
TextConfig? textConfig,
link_config.LinkConfig? linkConfig,
}) : codeConfig = codeConfig ?? code_config.CodeConfig(),
textConfig = textConfig ?? TextConfig(),
linkConfig = linkConfig ?? link_config.LinkConfig();