GptMarkdownConfig constructor

const GptMarkdownConfig({
  1. TextStyle? style,
  2. TextDirection textDirection = TextDirection.ltr,
  3. void onLinkTap(
    1. String url,
    2. String title
    )?,
  4. TextAlign? textAlign,
  5. TextScaler? textScaler,
  6. String latexWorkaround(
    1. String tex
    )?,
  7. InlineLatexBuilder? inlineLatexBuilder,
  8. BlockLatexBuilder? blockLatexBuilder,
  9. @Deprecated('Use inlineLatexBuilder and blockLatexBuilder. Will be removed in 2.0.0.') LatexBuilder? latexBuilder,
  10. void onLatexTap(
    1. LatexTapDetails details
    )?,
  11. bool followLinkColor = false,
  12. CodeBlockBuilder? codeBuilder,
  13. InlineSourceTagBuilder? inlineSourceTagBuilder,
  14. @Deprecated('Use inlineSourceTagBuilder. Will be removed in 2.0.0.') SourceTagBuilder? sourceTagBuilder,
  15. List<InlineDirective>? inlineDirectives,
  16. InlineCodeBuilder? inlineCodeBuilder,
  17. @Deprecated('Use inlineCodeBuilder. Will be removed in 2.0.0.') HighlightBuilder? highlightBuilder,
  18. OrderedListBuilder? orderedListBuilder,
  19. UnOrderedListBuilder? unOrderedListBuilder,
  20. bool blocksRenderDirectly = false,
  21. InlineLinkBuilder? inlineLinkBuilder,
  22. @Deprecated('Use inlineLinkBuilder. Will be removed in 2.0.0.') LinkBuilder? linkBuilder,
  23. ImageBuilder? imageBuilder,
  24. int? maxLines,
  25. TextOverflow? overflow,
  26. List<MarkdownComponent>? components,
  27. List<MarkdownComponent>? inlineComponents,
  28. List<InlinePattern>? inlinePatterns,
  29. List<MarkdownBlockComponent>? blockComponents,
  30. TableBuilder? tableBuilder,
  31. InlineCodeStyle? inlineCodeStyle,
  32. GptMarkdownStyleSheet? styleSheet,
  33. BlockQuoteBuilder? blockQuoteBuilder,
  34. AlertBuilder? alertBuilder,
  35. HeadingBuilder? headingBuilder,
  36. CheckboxBuilder? checkboxBuilder,
  37. RadioOptionBuilder? radioOptionBuilder,
  38. HrBuilder? hrBuilder,
  39. void onCheckboxChanged(
    1. bool value
    )?,
  40. void onCodeCopy(
    1. String code
    )?,
  41. void onImageTap(
    1. String code
    )?,
  42. void onSourceTagTap(
    1. String code
    )?,
  43. bool autolink = true,
  44. Set<String> autolinkSchemes = const <String>{},
  45. MarkdownScope scope = MarkdownScope.content,
})

Implementation

const GptMarkdownConfig({
  this.style,
  this.textDirection = TextDirection.ltr,
  this.onLinkTap,
  this.textAlign,
  this.textScaler,
  this.latexWorkaround,
  this.inlineLatexBuilder,
  this.blockLatexBuilder,
  @Deprecated(
    'Use inlineLatexBuilder and blockLatexBuilder. Will be removed in 2.0.0.',
  )
  this.latexBuilder,
  this.onLatexTap,
  this.followLinkColor = false,
  this.codeBuilder,
  this.inlineSourceTagBuilder,
  @Deprecated('Use inlineSourceTagBuilder. Will be removed in 2.0.0.')
  this.sourceTagBuilder,
  this.inlineDirectives,
  this.inlineCodeBuilder,
  @Deprecated('Use inlineCodeBuilder. Will be removed in 2.0.0.')
  this.highlightBuilder,
  this.orderedListBuilder,
  this.unOrderedListBuilder,
  this.blocksRenderDirectly = false,
  this.inlineLinkBuilder,
  @Deprecated('Use inlineLinkBuilder. Will be removed in 2.0.0.')
  this.linkBuilder,
  this.imageBuilder,
  this.maxLines,
  this.overflow,
  this.components,
  this.inlineComponents,
  this.inlinePatterns,
  this.blockComponents,
  this.tableBuilder,
  this.inlineCodeStyle,
  this.styleSheet,
  this.blockQuoteBuilder,
  this.alertBuilder,
  this.headingBuilder,
  this.checkboxBuilder,
  this.radioOptionBuilder,
  this.hrBuilder,
  this.onCheckboxChanged,
  this.onCodeCopy,
  this.onImageTap,
  this.onSourceTagTap,
  this.autolink = true,
  this.autolinkSchemes = const <String>{},
  this.scope = MarkdownScope.content,
});