copyWith method
GptMarkdownConfig
copyWith({
- TextStyle? style,
- TextDirection? textDirection,
- void onLinkTab()?,
- TextAlign? textAlign,
- TextScaler? textScaler,
- String latexWorkaround(
- String tex
- LatexBuilder? latexBuilder,
- SourceTagBuilder? sourceTagBuilder,
- bool? followLinkColor,
- CodeBlockBuilder? codeBuilder,
- int? maxLines,
- TextOverflow? overflow,
- HighlightBuilder? highlightBuilder,
- LinkBuilder? linkBuilder,
- ImageBuilder? imageBuilder,
- OrderedListBuilder? orderedListBuilder,
- UnOrderedListBuilder? unOrderedListBuilder,
- List<
MarkdownComponent> ? components, - 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,
);
}