PrismMarkdown constructor

const PrismMarkdown(
  1. String data, {
  2. Key? key,
  3. PrismMarkdownStyle? style,
  4. ExtensionSet? extensionSet,
  5. void onLinkTap(
    1. String href
    )?,
  6. bool selectable = true,
  7. TextSpan highlighter(
    1. String code,
    2. String language
    )?,
  8. Widget imageBuilder(
    1. String src,
    2. String alt,
    3. Widget fallback
    )?,
  9. int? maxLines,
  10. TextOverflow? overflow,
  11. bool asyncParsing = false,
  12. Widget? placeholder,
  13. Future<List<Node>> parseRunner(
    1. String data,
    2. ExtensionSet? extensionSet
    )?,
})

Creates a markdown renderer.

Implementation

const PrismMarkdown(
  this.data, {
  super.key,
  this.style,
  this.extensionSet,
  this.onLinkTap,
  this.selectable = true,
  this.highlighter,
  this.imageBuilder,
  this.maxLines,
  this.overflow,
  this.asyncParsing = false,
  this.placeholder,
  this.parseRunner,
});