copyWith method
GptMarkdownConfig
copyWith({
- TextStyle? style,
- TextDirection? textDirection,
- void onLinkTap()?,
- TextAlign? textAlign,
- TextScaler? textScaler,
- String latexWorkaround(
- String tex
- LatexBuilder? latexBuilder,
- SourceTagBuilder? sourceTagBuilder,
- bool? followLinkColor,
- CodeBlockBuilder? codeBuilder,
- int? maxLines,
- TextOverflow? overflow,
- InlineCodeBuilder? inlineCodeBuilder,
- @Deprecated('Use inlineCodeBuilder. Will be removed in 2.0.0.') HighlightBuilder? highlightBuilder,
- LinkBuilder? linkBuilder,
- ImageBuilder? imageBuilder,
- OrderedListBuilder? orderedListBuilder,
- UnOrderedListBuilder? unOrderedListBuilder,
- List<
MarkdownComponent> ? components, - List<
MarkdownComponent> ? inlineComponents, - List<
InlinePattern> ? inlinePatterns, - TableBuilder? tableBuilder,
- InlineCodeStyle? inlineCodeStyle,
- GptMarkdownStyleSheet? styleSheet,
- BlockQuoteBuilder? blockQuoteBuilder,
- 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,
- Set<
String> ? autolinkSchemes, - MarkdownScope? scope,
A copy of the configuration with the specified parameters.
Implementation
GptMarkdownConfig copyWith({
TextStyle? style,
TextDirection? textDirection,
final void Function(String url, String title)? onLinkTap,
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 InlineCodeBuilder? inlineCodeBuilder,
@Deprecated('Use inlineCodeBuilder. Will be removed in 2.0.0.')
final HighlightBuilder? highlightBuilder,
final LinkBuilder? linkBuilder,
final ImageBuilder? imageBuilder,
final OrderedListBuilder? orderedListBuilder,
final UnOrderedListBuilder? unOrderedListBuilder,
final List<MarkdownComponent>? components,
final List<MarkdownComponent>? inlineComponents,
final List<InlinePattern>? inlinePatterns,
final TableBuilder? tableBuilder,
final InlineCodeStyle? inlineCodeStyle,
final GptMarkdownStyleSheet? styleSheet,
final BlockQuoteBuilder? blockQuoteBuilder,
final HeadingBuilder? headingBuilder,
final CheckboxBuilder? checkboxBuilder,
final RadioOptionBuilder? radioOptionBuilder,
final HrBuilder? hrBuilder,
final void Function(bool value)? onCheckboxChanged,
final void Function(String code)? onCodeCopy,
final void Function(String url)? onImageTap,
final void Function(String content)? onSourceTagTap,
final bool? autolink,
final Set<String>? autolinkSchemes,
final MarkdownScope? scope,
}) {
return GptMarkdownConfig(
style: style ?? this.style,
textDirection: textDirection ?? this.textDirection,
onLinkTap: onLinkTap ?? this.onLinkTap,
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,
inlineCodeBuilder: inlineCodeBuilder ?? this.inlineCodeBuilder,
// ignore: deprecated_member_use_from_same_package
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,
inlinePatterns: inlinePatterns ?? this.inlinePatterns,
tableBuilder: tableBuilder ?? this.tableBuilder,
inlineCodeStyle: inlineCodeStyle ?? this.inlineCodeStyle,
styleSheet: styleSheet ?? this.styleSheet,
blockQuoteBuilder: blockQuoteBuilder ?? this.blockQuoteBuilder,
headingBuilder: headingBuilder ?? this.headingBuilder,
checkboxBuilder: checkboxBuilder ?? this.checkboxBuilder,
radioOptionBuilder: radioOptionBuilder ?? this.radioOptionBuilder,
hrBuilder: hrBuilder ?? this.hrBuilder,
onCheckboxChanged: onCheckboxChanged ?? this.onCheckboxChanged,
onCodeCopy: onCodeCopy ?? this.onCodeCopy,
onImageTap: onImageTap ?? this.onImageTap,
onSourceTagTap: onSourceTagTap ?? this.onSourceTagTap,
autolink: autolink ?? this.autolink,
autolinkSchemes: autolinkSchemes ?? this.autolinkSchemes,
scope: scope ?? this.scope,
);
}