GptMarkdownConfig constructor

const GptMarkdownConfig({
  1. TextStyle? style,
  2. TextDirection textDirection = TextDirection.ltr,
  3. void onLinkTab(
    1. String url,
    2. String title
    )?,
  4. TextAlign? textAlign,
  5. TextScaler? textScaler,
  6. String latexWorkaround(
    1. String tex
    )?,
  7. Widget latexBuilder(
    1. BuildContext context,
    2. String tex,
    3. TextStyle textStyle,
    4. bool inline,
    )?,
  8. bool followLinkColor = false,
  9. Widget codeBuilder(
    1. BuildContext context,
    2. String name,
    3. String code,
    4. bool closed,
    )?,
  10. Widget sourceTagBuilder(
    1. BuildContext context,
    2. String content,
    3. TextStyle textStyle
    )?,
  11. Widget highlightBuilder(
    1. BuildContext context,
    2. String text,
    3. TextStyle style
    )?,
  12. Widget linkBuilder(
    1. BuildContext context,
    2. String text,
    3. String url,
    4. TextStyle style,
    )?,
  13. Widget imageBuilder(
    1. BuildContext,
    2. String imageUrl
    )?,
  14. int? maxLines,
  15. TextOverflow? overflow,
})

Implementation

const GptMarkdownConfig({
  this.style,
  this.textDirection = TextDirection.ltr,
  this.onLinkTab,
  this.textAlign,
  this.textScaler,
  this.latexWorkaround,
  this.latexBuilder,
  this.followLinkColor = false,
  this.codeBuilder,
  this.sourceTagBuilder,
  this.highlightBuilder,
  this.linkBuilder,
  this.imageBuilder,
  this.maxLines,
  this.overflow,
});