copyWith method
GptMarkdownConfig
copyWith({
- TextStyle? style,
- TextDirection? textDirection,
- void onLinkTab()?,
- TextAlign? textAlign,
- TextScaler? textScaler,
- String latexWorkaround(
- String tex
- Widget latexBuilder(
- BuildContext context,
- String tex,
- TextStyle textStyle,
- bool inline,
- Widget sourceTagBuilder(
- BuildContext context,
- String content,
- TextStyle textStyle
- bool? followLinkColor,
- Widget codeBuilder(
- BuildContext context,
- String name,
- String code
- int? maxLines,
- TextOverflow? overflow,
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 Widget Function(
BuildContext context, String tex, TextStyle textStyle, bool inline)?
latexBuilder,
final Widget Function(
BuildContext context, String content, TextStyle textStyle)?
sourceTagBuilder,
bool? followLinkColor,
final Widget Function(BuildContext context, String name, String code)?
codeBuilder,
final int? maxLines,
final TextOverflow? overflow,
}) {
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,
);
}