copyWith method

GptMarkdownConfig copyWith({
  1. TextStyle? style,
  2. TextDirection? textDirection,
  3. void onLinkTab(
    1. String url,
    2. String title
    )?,
  4. TextAlign? textAlign,
  5. TextScaler? textScaler,
  6. String latexWorkaround(
    1. String tex
    )?,
  7. LatexBuilder? latexBuilder,
  8. SourceTagBuilder? sourceTagBuilder,
  9. bool? followLinkColor,
  10. CodeBlockBuilder? codeBuilder,
  11. int? maxLines,
  12. TextOverflow? overflow,
  13. HighlightBuilder? highlightBuilder,
  14. LinkBuilder? linkBuilder,
  15. ImageBuilder? imageBuilder,
  16. OrderedListBuilder? orderedListBuilder,
  17. UnOrderedListBuilder? unOrderedListBuilder,
  18. List<MarkdownComponent>? components,
  19. List<MarkdownComponent>? inlineComponents,
})

A copy of the configuration with the specified parameters.

Implementation

GptMarkdownConfig copyWith({
  TextStyle? style,
  TextDirection? textDirection,
  final void Function(String url, String title)? onLinkTab,
  final TextAlign? textAlign,
  final TextScaler? textScaler,
  final String Function(String tex)? latexWorkaround,
  final LatexBuilder? latexBuilder,
  final SourceTagBuilder? sourceTagBuilder,
  final bool? followLinkColor,
  final CodeBlockBuilder? codeBuilder,
  final int? maxLines,
  final TextOverflow? overflow,
  final HighlightBuilder? highlightBuilder,
  final LinkBuilder? linkBuilder,
  final ImageBuilder? imageBuilder,
  final OrderedListBuilder? orderedListBuilder,
  final UnOrderedListBuilder? unOrderedListBuilder,
  final List<MarkdownComponent>? components,
  final List<MarkdownComponent>? inlineComponents,
}) {
  return GptMarkdownConfig(
    style: style ?? this.style,
    textDirection: textDirection ?? this.textDirection,
    onLinkTab: onLinkTab ?? this.onLinkTab,
    textAlign: textAlign ?? this.textAlign,
    textScaler: textScaler ?? this.textScaler,
    latexWorkaround: latexWorkaround ?? this.latexWorkaround,
    latexBuilder: latexBuilder ?? this.latexBuilder,
    followLinkColor: followLinkColor ?? this.followLinkColor,
    codeBuilder: codeBuilder ?? this.codeBuilder,
    sourceTagBuilder: sourceTagBuilder ?? this.sourceTagBuilder,
    maxLines: maxLines ?? this.maxLines,
    overflow: overflow ?? this.overflow,
    highlightBuilder: highlightBuilder ?? this.highlightBuilder,
    linkBuilder: linkBuilder ?? this.linkBuilder,
    imageBuilder: imageBuilder ?? this.imageBuilder,
    orderedListBuilder: orderedListBuilder ?? this.orderedListBuilder,
    unOrderedListBuilder: unOrderedListBuilder ?? this.unOrderedListBuilder,
    components: components ?? this.components,
    inlineComponents: inlineComponents ?? this.inlineComponents,
  );
}