GptMarkdownConfig constructor
const
GptMarkdownConfig({
- TextStyle? style,
- TextDirection textDirection = TextDirection.ltr,
- void onLinkTap()?,
- TextAlign? textAlign,
- TextScaler? textScaler,
- String latexWorkaround(
- String tex
- InlineLatexBuilder? inlineLatexBuilder,
- BlockLatexBuilder? blockLatexBuilder,
- @Deprecated('Use inlineLatexBuilder and blockLatexBuilder. Will be removed in 2.0.0.') LatexBuilder? latexBuilder,
- void onLatexTap(
- LatexTapDetails details
- bool followLinkColor = false,
- CodeBlockBuilder? codeBuilder,
- InlineSourceTagBuilder? inlineSourceTagBuilder,
- @Deprecated('Use inlineSourceTagBuilder. Will be removed in 2.0.0.') SourceTagBuilder? sourceTagBuilder,
- List<
InlineDirective> ? inlineDirectives, - InlineCodeBuilder? inlineCodeBuilder,
- @Deprecated('Use inlineCodeBuilder. Will be removed in 2.0.0.') HighlightBuilder? highlightBuilder,
- OrderedListBuilder? orderedListBuilder,
- UnOrderedListBuilder? unOrderedListBuilder,
- bool blocksRenderDirectly = false,
- InlineLinkBuilder? inlineLinkBuilder,
- @Deprecated('Use inlineLinkBuilder. Will be removed in 2.0.0.') LinkBuilder? linkBuilder,
- ImageBuilder? imageBuilder,
- int? maxLines,
- TextOverflow? overflow,
- List<
MarkdownComponent> ? components, - List<
MarkdownComponent> ? inlineComponents, - List<
InlinePattern> ? inlinePatterns, - List<
MarkdownBlockComponent> ? blockComponents, - TableBuilder? tableBuilder,
- InlineCodeStyle? inlineCodeStyle,
- GptMarkdownStyleSheet? styleSheet,
- BlockQuoteBuilder? blockQuoteBuilder,
- AlertBuilder? alertBuilder,
- HeadingBuilder? headingBuilder,
- CheckboxBuilder? checkboxBuilder,
- RadioOptionBuilder? radioOptionBuilder,
- HrBuilder? hrBuilder,
- void onCheckboxChanged(
- bool value
- void onCodeCopy(
- String code
- void onImageTap(
- String code
- void onSourceTagTap(
- String code
- bool autolink = true,
- Set<
String> autolinkSchemes = const <String>{}, - 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,
});