MarkdownWidget constructor

MarkdownWidget({
  1. Key? key,
  2. required bool isDarkTheme,
  3. String? data,
  4. LatexConfig? latexConfig,
  5. ImageConfig? imageConfig,
  6. EdgeInsetsGeometry? padding,
  7. EdgeInsetsGeometry codePadding = EdgeInsets.zero,
  8. bool selectable = true,
  9. bool shrinkWrap = false,
  10. Color? backgroundColor,
  11. String? assetPath,
  12. Widget errorBuilder(
    1. Object
    )?,
  13. Widget assetLoaderBuilder()?,
  14. CodeConfig? codeConfig,
  15. TextConfig? textConfig,
  16. 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();