copyWith method
LatexConfig
copyWith({
- double? fontSize,
- LatexTheme? theme,
- LineBreakingConfig? lineBreaking,
- HighlightConfig? highlight,
- bool? accessibilityEnabled,
- void onNodeClick()?,
- void onHyperlinkClick(
- String url
- bool? enableLayoutCache,
Implementation
LatexConfig copyWith({
double? fontSize,
LatexTheme? theme,
LineBreakingConfig? lineBreaking,
HighlightConfig? highlight,
bool? accessibilityEnabled,
void Function(int startOffset, int endOffset, String latex)? onNodeClick,
void Function(String url)? onHyperlinkClick,
bool? enableLayoutCache,
}) {
return LatexConfig(
fontSize: fontSize ?? this.fontSize,
theme: theme ?? this.theme,
lineBreaking: lineBreaking ?? this.lineBreaking,
highlight: highlight ?? this.highlight,
accessibilityEnabled: accessibilityEnabled ?? this.accessibilityEnabled,
onNodeClick: onNodeClick ?? this.onNodeClick,
onHyperlinkClick: onHyperlinkClick ?? this.onHyperlinkClick,
enableLayoutCache: enableLayoutCache ?? this.enableLayoutCache,
);
}